added basepath to url and format when html5Mode is active. Major view service refactoring.