implement ap_autoconfig cmdus

Includes some memory management fixes, some TLV building
refactoring and misc cleanup.

The controller side does currently not implement any function
to trigger a credential exchange, but must in the currentl
implementation be triggered from the agent side. Such feature
is still to be implemented.
3 jobs for cntrl_channel_sel in 50 seconds (queued for 1 second)