bluetoothmsm: This is a combination of 6 commits.

Bluetooth: Defer BT on request till the BOOT complete

There are some cases where the BT on is triggered
before the Boot complete, so added a check to ensure that
Boot is completed.
If the Boot is not yet complete,then defered the BT on
request till the BOOT_COMPLETED event recived.

Change-Id: Idd73be4ed24f8450492cf1c305a5d54420aac774
CRs-fixed: 485281

BT-HF: Add BIND_AUTO_CREATE flag to auto create BluetoothHeadsetService

The patch fixes BT settings crash due to
BluetoothHeadsetService not auto created if it was forced
closed earlier. The flag BIND_AUTO_CREATE allows
BluetoothHeadsetService to be automatically created as
long as binding exists.

CRs-Fixed: 499280
Change-Id: I4463a7b8031edad921eacdc5a4e44709303f058d

Bluetooth: Change intent names

Changed the Intent name from 'com.android' to 'org.codeaurora'

Change-Id: I0696810f9d98bd903322e6f50019ac38b1a0a69d
CRs-Fixed: 411413

Bluetooth: Add a flag to check the BOOT complete

Add a flag FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
to avoid the the exception caused by broadcasting the
the intent before boot complete.

Change-Id: I88eee979cc36583572e1513fd855a6698ec25ab0
CRs-fixed: 490658

Conflicts:

	bluetoothmsm/java/android/server/BluetoothEventLoop.java

Bluetooth: Update PLAYSTATUS_CHANGED for Video Playback

PlaybackStatus Changed event is not sent to headset when user tries to
Plays Video in Video Player or Streaming in Youtube App due to this the
headset always sends PLAY. This change takes care of updating proper
status to Headset for these players.

Change-Id: I91477252fa0ba3d82bff2c8d5f73097bbf866fe0
CRs-Fixed: 493843

Bluetooth: Implemention of isEnabled API in BluetoothManagerService

ShutdownThread uses the isEnabled API when Device is Turning Off to check
bluetooth status and then calls the BluetoothManagerService::disable()
to Turn off Bluetooth and Disconnect Bluetooth Headset.

Change-Id: I10fcc49127d8caf0a6e5755df34e45834c74becb
CRs-Fixed: 532667