Traffic meter: Partial rewrite and add new features

Squashed commit with code from paour, temasek, BangL, cristianomatos & Der-Schubi

List of commits:

Traffic meter: Selectable summary timeout [1/2]
Traffic meter: show summary of traffic in brackets
Partial rewrite of traffic indicator
Traffic meter: Fixed divide by zero error, improve display of slow speeds
Traffic meter: Speed in B/s should be integer
Traffic meter: received bytes by time elapsed rather than fixed value
Fix Derps
Fix Network Speed Indicator Hide
Fix "Option to hide network speed indicator when there is no traffic"
Statusbar Network Indicator custom colors (1/2) - Reset button to stock color working
Make network speed indicator updating a bit faster
Option to hide network speed indicator when there is no traffic (2/2)

Change-Id: Ie457f24b1c9988d3b27cdcc5b39cd2863e55bd39

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Traffic.java
Add network usage stats to status bar…

… [1/2] [log]

PS2:
Get the time delta between updates and use that to show
average bytes per second.

Change-Id: I69f1f94bd65b02ae19e32d9aba9e48a80d4cead0

Conflicts:
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/styles.xml

Conflicts:
	packages/SystemUI/res/values/dimens.xml

Conflicts:

	packages/SystemUI/res/values/dimens.xml
fix

Change-Id: I3933afb9387b51c90495593864c0fdd374c20f38
fix2

Change-Id: I6c65ff1d68255d9afe26a8e57627b08a6071d35a
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27
NetStats: Option to hide NetStats if there is no traffic

Change-Id: If9626946d31f9a2ac30a3be57a182fb99ef2229f
NetStats: Show "MB/s" instead of only "MB"

Change-Id: I23fa4560a7551495cc4ffa5610c806d4da48f73b
NetStats: Make color settable by user

Change-Id: I9ec49ee9ffe51d07d4930103fa67be2266d41c5c
Traffic meter: Option to choose update speed

Change-Id: Ia61f71a71fc41a13489342fc0f843ae2ec3810cf
Either enable NetStats or Traffic meter

Change-Id: I0c9e21b7eb1a6de5599bd7abc912a61c3c2138ef
Change default color to net stats

Change-Id: I4d8fbb41969a17a60ef57128f4e1e0d8b21c5356
[1/2] Base: Battery Bar

Port of https://github.com/AOKP/frameworks_base/commit/e5d25fd7d7c2c9342d1088f4a96831b2aac89751

Change-Id: I69549320440ae679368bfa87c7f36d0d0734d51c

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	packages/SystemUI/res/values/attrs.xml
Fix NPE in Traffic-Meter when switching TRDS

Change-Id: I819c2d9b54e03fb9dc9928445e8b51aedcb32496
Change default color to Battery bar

Change-Id: If79f60b0cfe57b3d5ecfe8c156d3555395169956