Jetty server to act as master or register as slave