Register the calculate_md5 event handler for additional S3 operations

Register the calculate_md5 event handler for put-bucket-lifecycle and put-bucket-cors operations.  Add tests for both.  Fixes https://github.com/aws/aws-cli/issues/229.

In the tests, I am explicitly firing the ``before-call`` event in the test to trigger the generation of the ``Content-MD5`` header.