Cleanup dock battery support

Send an intent as soon as the device is undocked to get a timely update
of the SystemUI.

Adds a proper implementation of dock detection in BatteryService via
"dock_battery/device/ec_dock". This will probably have to be rewritten
in a more generic way to support other manufacturers as well (once we
support other docks at all).

Change-Id: Ib1088c118c8695fd93ba085d976ca1eb374ae71e

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java
frameworks: base: systemui: remove textSize from dock_battery_text

* Having this option set caused the text size to differ between
  dock_battery_text and battery_text when using the percentage
  battery mod.

Change-Id: Ifb58d4be08d2fc547fe74574dbd9d8d6bd279ede
Merge remote branch 'cyan/cm-10.1' into cm-10.1

Conflicts:
	services/jni/com_android_server_BatteryService.cpp