[#3][m]: proper support for directory listing - fixes #3.

* Support for both cases where we are in s3 and want directory style and for prefix querystring style