Add Util class to get baseURL

Please merge code with trunk