need to save, basic code for embedded jetty login service through jsapi
and jaas with basicauthenticator