fix(instanceurl): subpath in self-managed GitLab is not used #319
Fixed by resolving the instanceUrl's path and adding it to the front of the endpoint. If there is no path URL module will give '/'. Hence the leading slash in the endpoint was removed. Tests are added.
Edited by Tomas Vik