added server functionality

note: build doesnt work. cherrypy used for server functionality