fixed some issues when base url is not equal to GWT.getHostPageBaseUrl() I this case you have to set the base url yourself in a different way.