Better characteristic discover. Background BLE implementation start.

Also added a connecting state