Update dependencies.
Only read environment from command line if server is called directly.

One could, for example, launch the server directly from the grunt
process, which would fail as the server tries to interpret the grunt
command line parameters as its environment configuration. Thus, we
ignore all command line arguments unless the server file is the main
script for the node process.
Improve logging.

Includes changes to specify object types when logging failed requests,
remove extraneous metadata for records, add logging for HTTP accesses
and login/logout actions, and use a more verbose logging level in
development environments.
Use promises rather than callbacks for test actions.