modify to use logger only in dev environment

This will eliminate all the logger messages being intertwined with the
mocha test reporter output.  Before, all the http call were being logged
out to the console, even when running the server test, which made for a
difficult time to sort through which was which.
remove explicity test environment declaration

Removed the explicit NODE_ENV=test assignment/declaration from the code
and added it the test command instead.