switched to deploy mode
Fixed an error where I was using Mongoose style promises on PIO code. This caused a crash if the server finished communicating with the PIO server before node had finished reloading the page. Switched to callbacks.