refactored to proper embedded jetty with jersey