Ceph pool support and Bug fixes.

Will add comments.