Refactor and prepare xtreemfs feature to be commited in upstream cinder.