moves database intiialization to a hook to eliminate sails bootstrap warning
Disabled _ global. Reference to PR #44
Added missing lo-dash require.
Added 'isAdmin' policy and actual usage of that.
Merge pull request #40 from caasjj/master

moves database initialization to a hook to eliminate sails bootstrap war...
Refactored PR #40, and moved all the logic to hook.
Added more readable test cases for AuthController test. This fixes PR #45
Fixed tests.
Refactores passport middleware and actual policies. Fix for #46
Added helper Date service.
Added moment-timezone package.
Refactored base controller.
Added base model and necessary changes to existing models.
Added needed extra data to all necessary fixtures. Also changed load-db hook to ignore association queries with populate.
Added policies to automatic set some model data.
Removed not needed verbose log.
Refactored Logger service. Not so clean - but it works. I have to figure something cleaner for this later. Fixes #41
Refactored Token and Logger services + authenticated policy. Simplifies #41
Added simple gulp task for configuration of backend url to frontend index.html. Fixes #9
Added simple "add new book" feature. Another partial fix for #20