#587 moved setting the env var for port from the gruntfile to server.js

Moved setting the environment variable for port from the gruntfile to server.js

Using require(...).port to set the env in the gruntfile caused the config to be executed when the gruntfile was initialized.  This caused the grunt test task to be executed in the incorrect environment.