Server code refactor

Ripped out old server code and re-wrote it to use promises. Switched
from mysql to mongodb (faster for me to prototype with). Broke frontend
code.