Fixes for login redirects and session. Projects and activities are now stored as JSON for faster lookup