android/handsfree: Add initial implementation of Codec Negotiation feature

It will handle AT+BAC command and update list of available codecs.
It will check if mandatory codec CVSD is present on list and, if
Wide Band Speech supported, MSBC codec is on next place. Other codecs
can be also used after extending codecs_defaults array.
It will also handle incorrect SLC establishment, when HF supports
Codec Negotiation, but didn't send AT+BAC.
android/handsfree: Move connect_sco() to more appropriate place

Move connect_sco as it will be used in at_cmd_bcc()
android/handsfree: Add handling of AT+BCS and AT+BCC

It will service codec nogotiation and establish SCO connection with
negotiated parameters. If SCO establishment failed, try to connect
with mandatory codec CVSD.
android/handsfree: Split members in device for better readability
android/handsfree: Fix some style issues
android/handsfree: Simplify condition in connect_audio
android/handsfree: Cleanup info and error messages
android/gatt: Use queue and stdlib instead of GLib where possible

This patch changes using GLib to queues and stdlib operators.
android/gatt: Change name of match functions
android/bluetooth: Refactor start/stop discovery

Pass discovery type to discovery stop/start routine so it can be used
also for LE only scan.
android/bluetooth: Move start discovery function up in the file

This is to avoid unneeded code move in further paatches.
emulator/btdev: Track LE scanning own address type
emulator/btdev: Track direct advertising address
emulator/btdev: Add helper for selecting advertising address
emulator/btdev: Add proper matching for direct advertising
emulator/btdev: Do correct matching for direct advertising when connecting
core: Fix bearer type selection
core: Update bearer timestamp also when connecting

This way we avoid a bit strange behavior when we've previously always
been acceptors for a connection (in which case the last seen timestamp
would never have been touched).
emulator/btdev: Fix checking for non-connectable advertising
emulator/bthost: Set advertising parameters before enabling advertising