gatt: Fix invalid read

src/device.c:discover_services_req_exit()
DiscoverServices requestor exited
attrib/gattrib.c:g_attrib_ref() 0x4ee4960: ref=3
==16682== Invalid read of size 8
==16682==    at 0x4429F5: g_attrib_get_buffer (gattrib.c:655)
==16682==    by 0x43FAE5: foreach_by_type (gatt.c:1302)
==16682==    by 0x441E2A: gatt_foreach_by_type (gatt.c:1327)
==16682==    by 0x46010A: prim_service_complete (gatt.c:2861)
==16682==    by 0x43FB9E: read_by_type_cb (gatt.c:1290)
==16682==    by 0x442596: disconnect_timeout (gattrib.c:272)
==16682==    by 0x3CA5E483BA: g_timeout_dispatch (gmain.c:3882)
==16682==    by 0x3CA5E47824: g_main_context_dispatch (gmain.c:2539)
==16682==    by 0x3CA5E47B57: g_main_context_iterate.isra.23
(gmain.c:3146)
==16682==    by 0x3CA5E47F51: g_main_loop_run (gmain.c:3340)
==16682==    by 0x40A4E3: main (main.c:586)
==16682==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
core: Remove unneeded checking
core: Fix error message when cancelling pairing

This patch fixes wrong message in the Pair reply message when a pairing
procedure is cancelled when the adapter stop gets called.
gatt: Fix missing reply for Connect() or ConnectProfiles()

This patch fixes a missing D-Bus message reply for Connect() or
ConnectProfiles() gets called but incoming bonding fails.
core: Fix wrong when bonding retry fails

This patch fixes a wrong message for device Pair() or Connect() when
device bonding retry fails.
gatt-findme: Collect list of services
gatt-findme: Collect list of characteristics
gatt-findme: Check if service is Immediate alert type
gatt-findme: Add timer to search for the alert level characteristic
gatt-findme: Write new Alert Level value
gatt-findme: Simplify and cleanup code

This code is meant to be used as API example, therefore it needs to be
as simple as possible (while still fully functional).
gatt-findme: Store only IAS service

Simplify code by collecting only the IAS service instead of a list of
all services.
gatt-findme: Implement support for -i option

If no -i option is given, use the first adapter found. If no adapter is
found, print an error message.
gatt-findme: Create function for reading boolean D-Bus properties
gatt-findme: Do not check for Discovering before StartDiscovery()

Assume that adapter is not in discovery state. Instead, check that we
are discovering before calling StopDiscovery().
gatt-findme: Only activate timer after connected

Without this fix, if connection establishment takes too long, the timer
is triggered before services are discovered.
gatt-findme: Remove adapter checks on timer

These checks are not valid anymore now that the timer is only triggered
after device is connected (therefore an adapter is always present).

Instead print debug messages when adapter is found.
gatt-findme: Remove StopDiscovery() code

It is actually not necessary to run StopDiscovery(), as BlueZ does this
for us when the app leaves the bus.
gatt-findme: Power on adapter before discovery
gatt: Fix leaking GATT service discovery resources