CBDEUCE-89

- Changed the Vault Exists End-Point to use HEAD instead of GET
Vault Get/Head End Point Update

- Changed Vault Head End-Point to return whether or not a vault exists
- Changed Vault Get End-Point to return statistics on the Vault
-- Setup framework to get statistics from the drivers and stubbed out the drivers to fill in the information
-- Metadata drivers are to return count of files, file-blocks, and blocks
-- Storage drivers are to return count of blocks, and vault size
-- Implemented functionality in SQLite driver
- Updated Vault Controller Test for the new end-point functionality
- Updated tox.ini to exclude env directory (no preceeding period)
Vault End-Point Get/Head Update

- Add test for metadata driver statistics
Vault End-Point Get/Head Update

- Adding Cassandra statistics implementation.
- Note: The CQL statements may need to get revised still...not sure if that form will work.
Vault End-Point Get/Head Update

- Fix Pecan/Weblint bug when returning 204 by deleting the content-type header
- Update Vault Delete Test, no reason to be expecting errors when checking for a 204 success vault
- Add Disk Storage Statistics Implementation
- Add Swift Storage Statistics Implementation
- Add MongoDB Metadata Statistics Implementation
Merge branch 'master' into bugfix_vaultname_endpoint_get-head

Conflicts:
	deuce/controllers/vault.py
	deuce/drivers/blockstoragedriver.py
	deuce/drivers/disk/diskstoragedriver.py
	deuce/drivers/swift/swiftstoragedriver.py
Vault End-Point Get/Head Update

- Bug Fix: Metadata doesn't need the auth token
- Bug Fix: Sqlite didn't properly return the value
- Bug Fix: Cassandra might not properly return the value (passes tox)
- Bug Fix: bad variable names
- Bug Fix: Remove duplicate line from merge with master
-- 'file' instead of 'files' when gettings stats for disk storage driver
-- 'container_metadta' instead of 'container_metadata' when getting stats for swift storage driver
- Enhancement: Update Swift Mocking to contain required headers for container_head functionality
- Enhancement: Added test for storage driver statistics
- Enhancement: Unified the statistics tests between the storage and metadata testing
-- Renamed 'test_vault_crud' function to 'test_vault_statistics' in test_sqlite_storage_driver.py
-- Renamed 'stats' variable to 'statistics' in the test_sqlite_storage_driver.py
Vault End-Point Get/Head Update

- Fixes for pep8 complaince
-- indentations
-- lines too long
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99
- Bug Fix: Project ID Hook did not provide a good response when the Auth Token was not set. (Q: Is that really the right place to put the Auth Token?)
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99
Bug Fix: block generator did not propagate the auth token when retrieving the block list
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99

- Bug Fix: Fixes the content-type with the exception of an extraneous semi-colon

Note: Pecan Response object is really just the WebOb.response.Response object.
There is a funny rule in the WebOb.response.Response object such that setting
the content-type to a value will by default append any existing values. If,
however, the value includes any parameters or even just a semi-colon then it
only uses what is provided and does not do any appending of existing data.
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99

- Bug Fix: pep8 compliance
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99
- Enhancement: Added test for auth token to the root controller
- Enhancement: Made explicit the test for the project-id on the root controller
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99

- Bug Fix: Block Controller has the same content-type bug
- Bug Fix: When assigning content-type to 'application/binary' we need to set the content-length
- Enhancement: Added a method to get the length of a file/block from the Vault Model
- Enhancement: Added a method to get the length of an object from the storage drivers
- Enhancement: Added a method to get the length of a file from the metadata drivers
- Enhancement: (Cassandra) Added a text 'size' field to the files documents
- Enhancement: (Sqlite) Added an integer 'size' field to the files table
- Enhancement: (MongoDB) Added size field to the files documents
- Enhancement: Updated the Swift Mocking to return the "required" headers when getting an object
- Caveat: MongoDB driver is not reporting the file size correctly for some reason (test_sqlite_driver.py: line 261, returns 0)
- Caveat: Swift Driver is having issues with deleting the vault in the tests (test_disk_storage_driiver.py: line 125)
- Caveat: There are still some coverage issues
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99
- pep8 compliance
Get File Wrong Content-Type Bug Fix

- Enhancement: We don't need the try/except handling in the vault model as it's handled by the drivers so only sane values (0+) come back
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99

- Enhancement: Added test for file size of non-existent file; result should be zero
Update gitignore

- added directories, virtualenv to gitignore
Get File Wrong Content-Type Bug Fix

JIRA: CBDEUCE-99

- Updated comments per Sriram
Get File Wrong Content-Type Bug Fix

- Add the AuthToken hook to the configuration