added NanoHTTPD
moved repl code to own class
created  server
removed 'undefined' from var declaration