Extend channel structure to store AP and modes

+ Add AP discovery step
Get AP from CPAProtocolLibrary
Register client using ap_base_url
Increment version
Access to protected resources in CLIENT_MODE
Add USER_MODE support