cleaned up and updated dependencies

update dependencies, remove tmp log folder, export server in main
server.js