add common javascript functionality, configure restful handler to response, fix inheritance of mainhandler, add feedback page and handler