Clean up old code, and fix login page (css and scripts). Closes Github #1.