Service path '#' syntax and default behaviours

Implement #646 
@kzangeli this is the kind of function that you can write in minutes but I need a couple of hours :)

We need this as considering both posibilities (both /Madrid/Gardens and /Madrid/Gardens/) identifying the same service path make query logic very complex. It is easier if we remove any trailing "/" at the end before storing it in DB.

Could you help me with this providing the removeTrailingSlash() function, please? You could put here the code, if you don't want to bother with branch switching to do a commit.