Introduce OC.generateUrl() in master

In order to allow smooth migration of https://github.com/owncloud/core/pull/7494 we first introduce the new function and afterwards kill OC.router

Backport is available in: https://github.com/owncloud/core/pull/7578