2FA: import a copy of class.two-factor-core.php from upstream trunk.
Needed so we can make it extendable and override some functions.
See #77