Made path concatenation normalized

For example,  if trying to get all documents from database "beer-example" using following code
database.all(function (res) {
   	console.log(res);
 });
The path will be concatenated as /beer-example//_all_docs, and syncGateway will return "NOT FOUND" error.