Added the ability for express to connect in server.js
Changed way ports are handled in config and gruntfile.
Changed config to be asyncronous. Fails when given unknown mode.

Test cases updated.
Rebuilt server.js to use promises.