Added basic login and account management.

Overhauled concurrency a bit.