Parsing baseURI and returning 400 Bad Request if blank/invalid/etc.

Related to https://www.pivotaltracker.com/story/show/76839678