added a cache to the node server, cleaned up code. Next step: tests
files for heroku