Added some logic to enable uploading cookbooks

With this added code you can now post a cookbook to the community, or
newly released supermarket, API