core: convert code to use Rados C++ API

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
style: switch to 2 space indent for C++

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>