Configure jetty and restful api.