Add a config parameter to enable path-style bucket access

This is a preliminary implementation of #375. I welcome any feedback, especially with regard to testing. I have checked this against run-tests.py, and see one failing test, but have not fully grokked the test suite setup just yet.