Replace OC.Router.generate() with OC.generateUrl()
adding JSDoc + remove unused function
fixing download url in files app
remove OC.Router.registerLoadedCallback()
fixing js unit tests
Removed obsolete OC.Router stubs in specHelper
Merge branch 'master' into fix-7307

Conflicts:
	core/js/router.js
	settings/js/admin.js
Merge pull request #7494 from owncloud/fix-7307

Replace OC.Router.generate() with OC.generateUrl()