Merge branch 'ml-realtime'
Fix for bug where clicking a link from the map would not set the app to the correct internal state. Updating the current internal location when a link is clicked on the map
When watching for file system changes is not the appropriate place to repackage the application since watching for FS changes only occurs during development.
Gruntfile: Added jsIgnore property which lists js files which should not be linted. Updated js hint task to take advantage of this property. Added empty .csslintrc file.
Added .jshintrc file to cut down on some of the noisy jsHint warnings
index.html that uses concatenated files is now called index-prod.html
Discovered bug related to socket.io that was preventing index route handler from from responding to requests if it defined in a separate module. Defining it in the same module as the app var works
500 errors now return JSON instead of attempting to load non-existant view
Reduced verbosity of permissionManager
Added new property to determine which index file gets sent
Moved dist/prodIndex.html (the old, full index file) back to index.html. Reanmed index-prod to index-dist
Restored index router js file, which now renders either index or index-dist views depending on config settings. Removed routing from server.js. express.js cleanup - 404s no longer cause server error
Added views folder with index.html and index-dist.hmtl. The latter file is the same as index, but uses concatendated + minified js and css. Deleted public/ versions of both files
routes/index.js using views
use of concatendated files can be specified either through config file update or env var
Removed dist folder from source control and added to gitignore. These files should not be under source control, just like bower components and node modules. Build them when you need them.
Added REAME.txt to public/ to explain the disapperance of index files
Minor cleanup
Fix for bug where alerts were being resent to clients that remained connected during server shutdown
Added ability to redirect logging to file system and to specify where in the file system to output to. Added ability to specify logging level of detail. All options can be controlled through env vars
Updated search API so that search terms are query params not path params. Search result coverPhoto fields are being populated.