Extend OF client API so that controller's role can be changed

Motivated by FlowForwarding/LINC-Switch#305.