update to use AWS Signature Version 4

this is a rewrite of the form helper to implement the current AWS Signature version 4 method of signing the policy.