Add support for ConnectThread

ConnectThread runs the blocking call to BluetoothSocket#connect() until
it either succeeds -- at which point it creates a client network (TODO)
-- or is aborted because the request went away.

Any error encountered during BluetoothSocket#connect() triggers an
onUnavailable() on all requests matching that specifier. There are
currently no retries.

Test: TH
Change-Id: Ib199663c881610988fd587446337f9701c89de83
1 file changed