PAKDF infrastructure.
WIP auth flow.
Minimal registration and login with new API.
Minor fixes and cleanup.