Updated sdk to api level 19 (KitKat)
Prevent some possible exceptions
Retrieve the BluetoothAdapter in a new way in JELLY_BEAN_MR2 and above

Also check if mChatService and mBluetoothHandler is null before creating them
There is no reason to check flavour before calling close()
Added link to original blog post
Check if data is available before trying to read data

Also set stopReading to false when calling cancel() to make sure thread is stopped
Check if internet connection is available in a better way
Updated GraphView library

Needed for fix a bug in scrollToEnd first - see: https://github.com/Lauszus/GraphView/commit/5c82b32fd202590f886d5b67c14f227d7a2c5a7a
Added TODO note
According to specs I should call setMeasuredDimension as well
Adjusted number of labels
Update GraphView library to 3.1.1
Changed log level
Update PhysicaloidLibrary library
Wait a bit before closing Bluetooth connection, as onPause needs to send some data first
SCREEN_ORIENTATION_USER_PORTRAIT is not available until api level 18
Update Android Gradle plugin, build tools, and do not abort on lint error
Set versionCode, versionName and archiveBaseName in a more elegant way
Update all submodules
Fixed all lint errors and warnings