Order imports alphabetically
Add PHONE_VERSION endpoint handler

Add a phone version endpoint handler so that we respond appropriately when
connecting to a pebble.  The pebble sends this query at the start of an RFCOMM
connection and will assume a bare minimum of supported features if we don't
respond.

The only feature this controls (that I can tell) is whether or not the music
app sends next/previous/pause commands back to us.  Soo...this fixes the music
app so that it actually works.  Yay!
Genericise remote support

You can make p.py control a music app like so:

./p.py remote Spotify
Move DEBUG_PROTOCOL section for received messages

Move the debug protocol output to the function where we can produce the entire
received message instead of just the payload.
This is the initial feature commit for libpebble with lightblue.

-lightblue runs inside it's own process, there are issues with shutting it down when it's parent process dies.

-example command line call:
./p.py --pebble_id DC93 --lightblue --pair ping
--> this will pair to the mac-address obtained by searching for .*DC:93 and then will ping it. --lightblue indicates use of lightblue library
bigfixes for cases within autodetect
further improved autodetection. Catching correct exception thrown from _bluetoothsocket.py (socket.timeout())
general improvements to formatting and autodetection.
Usability improvements and some readability improvements
improved the behaviour of the child process (lightblue) by making it Daemonic. Also added a timeout for waiting on the setup process.
Moved LightBlueProcess into its own file, wrapped in PySerial style read, write and close.
Added lightblue dependency to requirements.txt
- Missing re import
- 20 sec timout is too short when pairing
- Fixed typo
non-editable dependency for lightblue in requirements.txt
- Missing re import
- 20 sec timout is too short when pairing
- Fixed typo
non-editable dependency for lightblue in requirements.txt
Added "remove_app_by_uuid" function to libpebble / p.py
Merge pull request #1 from pebble/feature-remove-app-by-uuid

Feature remove app by uuid
improved readability and interface. fixed buggy log in pebble.py
refactored length to timeout, added verbose mac address to connection. https://github.com/pebble/lightblue-0.4/pull/4