Add new utility functions

* shared.sanitizeUri
* shared.toNT with expandPrefixes
* shared.escapeParam
* shared.generateConditionsString
Promisify ontologyRouter, decouple API