Back to this again...

- Fix login error message being overly verbose/redundent
- Fix broken JS syntax
- Added badges, "beta" mode
- Fixed postgres DB connection for 9.3
- Added user-info endpoint
- Added badge endpoints