gluster: Refactored rebalance/remove-brick status queries

Refactored the rebalance and remove bricks status queries and moved the
common logic to a base class.

Change-Id: I31f7d438641ad05874542fd57b723a0d482a68e4
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>