JSLint app.js
Adds jasmine spec with test for authenticate middleware
Adds more authentication tests
Fixes unit tests with teardown operation