fix downloading/uploading of cookbooks
add test coverage and proper behavior for getting versions of a cookbook