adding new javascript function OC.generateUrl(url, params)
adding js unit tests for OC.generateUrl()
Merge pull request #7579 from owncloud/introduce-generateUrl-master

Introduce OC.generateUrl() in master