adding samples, changed the config to a provider, added support hashPrefix and html5mode
automatic detection of html5mode and hashPrefix at url format time