Implementing new Glacier class
Merged with gburca/master
Revert "Implementing new Glacier class"

This reverts commit c6da21cca5f93f0e1a1b32bad30a9e65c62a9290.

Conflicts:

	glacier/glacier.py
Added .ropeproject to gitignore
Implementing new GlacierWrapper interface
Implemented deletearchive wrapper function
Merge branch 'master' of https://github.com/offlinehacker/amazon-glacier-cmd-interface into glacier_lib
Merge branch 'master' of https://github.com/gburca/amazon-glacier-cmd-interface into glacier_lib
Updated GlacierWrapper
class log_class_call(object): renamed "enter" to "start" and "exit" to "finish" as that describes them better, and "exit" is a reserved word so should not be used as variable name.

General:
- made changes to general style to keep it the same everywhere.
- corrected grammar & spelling in comments and elsewhere, including error response codes.
- where you log success, you should also log failure.
- corrected strings: between triple-quotes, don't use indentation on second and subsequent lines as the leading spaces remain in the string.
- pytz is not part of the python standard library; no alternative in datetime or so?
whwatever
Syntax and lexical cleanup
Changes to glacier.py in glacier_lib branch.

- added logfile option for command line and config file, defaulting to ~/.glacier-cmd.log
(reason: don't want to have log files scattered around my hard disk as glacier-cmd is run from so many different directories).

- moved setting up logging to the end of main(), after parsing the configuration.

- moved constants declarations together.

- what is that @wraps(fn) doing in handle_errors(fn)?

- added import pytz

- bugfix in mkvault

- bugfix in rmvault (it now actually removes the vault instead of creating it)

- added warning that part size is increased if user supplied part size is too small.

- made messages related to archive retrieval more meaningful.

- renamed function deletearchive to rmarchive so it's the same as the command line option (all other functions do match their command line option name).

- added output when starting inventory retrieval jobs.

- setuplogging now takes (args) as argument, to pass in various logging related arguments.

- renamed command line option -d/--debug to -l/--loglevel
Fixes #56 - Now works with Python 2.6 again
Added pagination support to some commands

The following commands now support pagination:
- list_vaults
- list_multipart_uploads
- list_parts
New changes.

glacier.py:

Bugfix: error response now prints the actual Amazon reply message.

Bugfix: abortmultipart needed to be passed the uploadId too.

Addition: listmultiparts implemented.

Renamed function 'putarchive' to 'upload' to be consistent with the command line option.

GlacierWrapper.py:

Added function `_check_id (amazon_id)` to check the validity of an upload/job/archive/whatever id. Not implemented yet, currently simply returns True.

Moved upload function to GlacierWrapper.py
Fixed upload of small files. Closes #58.
major work on uploads
Finished moving all corecall stuff from glacier.py to GlacierWrapper.py.

Merge branch 'glacier_lib' of https://github.com/offlinehacker/amazon-glacier-cmd-interface into glacier_lib

Conflicts:
	glacier/GlacierWrapper.py
Merge pull request #57 from gburca/master

Support for Python 2.6 and pagination