Re-organise interface to allow multiple interfaces to share common code. The idea being to add ceph-mds to this code base. Change-Id: Ie53ef7e5fc7a461dca8e53d9f91b332399a70076