Add functions for getting and setting controller roles of switches

    * add roles()
    * add get_role()
    * merge two versions of device_role()
    * comment out debug print statements
Maybe the convention should be that if a certain object type is expected, that same type is returned. So if a JSON object is expected, we should return an empty dictionary on failure. 
None type sounds better than returning an arbitrary main.FALSE, however