fix for form based authentication for client, move /rest to be part of base url as it can be configured in web.xml