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
Thanks, I'll update the pull request now