Allow base_url to take an optional path arg

This makes it easier to construct a url without having to do string
concatenation.