Alikins/redhataccount

This is a variation of https://github.com/candlepin/subscription-manager/pull/760 with style cleans and test cases added and fixed.