Finish basic authentication; add mongodb persistence; add ability to check for existing users with same id