Preparing Production Mode

This branch made the changes necessary to run the server in production mode.