WIP on the plane

- added login controller
- refactored session stuff
- added ui-router
Handling malformed json