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

fixes https://github.com/owncloud/documents/issues/215