Added basic CAP handling. Currently only supports ACK and LS.