getBaseUrl(HttpServletRequest request) NOT UNIT TESTED Returns the base url (e.g, http://myhost:8080/myapp) suitable for
using in a base tag or building reliable urls.
NOT UNIT TESTED Returns the URL (including query parameters) minus the scheme, host, and
context path. This method probably be moved to a more general purpose
class.