A couple of changes in one commit (whoops!)

- JSHint now passes
- Set up karma tests again
- Added chai to package.json
Fixed logs when the user wasn't logged in
Implemented system whereas if the user is not logged in then they will be directed to the login partial