Implemented server persistence using MongoDB

Note that every user action is saved back to the database immediately.
This mean no need to hook the terminal to catch abrubt server closure.
However it also means it has horrible scaleability.