enforced formatting, code conventions
adds karma-coverage dependency and configuration
lower-case browser name for coverage report
make coverage reports work from grunt serve task
full coverage on MainCtrl
add PersistenceService and getCredentials