Refactored for concurrency and use of the camlistore client api