Trailing slash in the base URL will break reqeusts

In addition to removing the leading slash from the path, this pull request also removes the trailing slash from the root URL.