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 [1/2]

Change-Id: If9626946d31f9a2ac30a3be57a182fb99ef2229f