Refactored server component to be a RESTful endpoint powered by undREST