librados c api for object operations, and a couple bug fixes