Store config as json instead of js.

- As a bonus, comments can be placed within `config.json`. They're stripped via https://github.com/sindresorhus/strip-json-comments before parsed as a JSON object.

- I put in the bluebird promise library to organize flow.

- Refactored `server.js` a little to organize things.