Finish up autologin. Fixes #24