Upload policy document support

Pull request is based on work from @goldv in #11 . Improvements were made for creation of the policy.