Added data persistence with RethinkDB. While I was at it I refactored a lot of the Node code to be more module and maintainable. Closes #3.