allow rmdir to remove bucket or object
fix rmdir tests
check if any objects exist in s3 pseudo-bucket before remove it
Merge remote-tracking branch 'alexk/rmdir-fix'
Fixin up deleting pseudo directories

- Adding a trailing "/" if needed so that it is not required.
- Restructuring the logic to be a bit simpler.
- Adding a test to ensure that "/" is not needed.