Fixes for AWS Glacier support (develop)

Fixes a few issues in the new AWS Glacier offline storage support. This PR contains the same changes as #55 but are based against the ``develop`` branch instead of ``2013.07``.