Massive refactor

- Significant cleanup of code.
- Added persistent storage of users (through SQLite).
- Moved from Jasmine to Mocha for testing.
- Added per-environment configuration (config.coffee).
- Added Winston logging.