made MessageBus a class

Change-Id: Ib499fc9e82d326eb31769a8ec7371f8f788239bc
made ResourcePool a class

Change-Id: I739f3dc04a36a2ea1ce53560664f13e75052a917