Ceph pool support and Bug fixes.

Left this one for the cleanup PR as this requires lot more lines above and below this code to be changed.