Added search option like showHelp said there was and checked to see if the saved token file exists before trying to read it.
Removed old code that wasn't used after the mongodb refactor.
Re-ordered functions in the mongbdb impl to group by collection type.
Added index on the message column. Still playing around with the mongodb impl. Not sure yet how to fix searching without exposing the underlying datastore.
Refactored code base to simplify server.js.
Implemented simple password hashing. Going to look at using bcrypt with salt instead.
Cleaned up some of the code by implementing earlier return statements as per http://nodeguide.com/style.html.
Implemented newserver.js that will take the place of server.js in the next commit. It blocks the application from starting until the DB is started.
Application startup now waits for the DB to be available for reads/writes beforing continuging to launch the rest of the application. This was done to ensure that incoming messages wouldb't be received then fail to be saved. It also allows the application to log when it has started.
Cleaned up require statements.
Switched password hashing to use bcrypt.
Forgot to check this in.
Merge pull request #9 from stancarney/master

See commit list of details