Moved env check to client so it works offline
Closes #89 - Added Winston logging using mongoDB