CMS-2174 Make ResourceRequests generate correct URLs when app deployed in a webapp context

Fix bug in api_rest.Path to make it behave right in case of absolute == false
Merge pull request #374 from enonic/CMS-2174

CMS-2174 Make ResourceRequests generate correct URLs when app deployed i...