changed getactive and inactive hosts methods 

they are now returning json and not the http response

Change-Id: Id8314ab74e5ddc621600bf02d38a6d094b95a9a7