agent, broker: api to retrieve host status

Add client library with api to retrieve host status from storage.  This
required some refactoring to move selected agent logic to a shared
location in the source tree.

Change-Id: I03997f51a4e512d5456f59d6794dce6ce8495287
Signed-off-by: Greg Padgett <gpadgett@redhat.com>