Get accounts and login stuff working. Fixes #3.