Extended Powermenu (Squashed)

Port reboot option to Power Menu.

  * Ported from ICS, including hot reboot (overlay still needed).
  * Quite a bit changed from ics -> jb, so i just did this manually.
  * drewis - manual port from pm to power for ShutdownThread for 4.2
  * elginsk8r - manual port from 4.4 -> 5.0

 This is the 2nd commit message:

power menu: fix a few things that got lost during reboot options port

* Shutdownthread stuff already applied

 This is the 3rd commit message:

Extended Power Menu - Screenshot

This adds the screenshot option to the device power menu and leverages
the built-in ICS functionality to take the resulting image.

It is dependant on the Extended Power Menu - Reboot commit

 This is the 4th commit message:

power menu: use only stock options when DISABLE_TOOLBOX is set

 This is the 5th commit message:

fwbs: Add support to individually hide power menu options.

 This is the 6th commit message:

frameworks: Add a setting to specify the screenshot delay.

 * Only works from power menu
 * Defaults to 1 second (1000ms)

 This is the 7th commit message:

Remove GB alert drawable from reboot menu

 This is the 8th commit message:

Framework: fix reboot dialog title for tablets

Change-Id: Iea99bc542b20df728965233a94de6b1b172ef974
Policy: support for volume wake/music control

port from ics:
commit 153e40d29fae542b9c70f994d64e4c043645a523
Author: Sven Dawitz <sven@dawitz.de>
Date:   Sun Jan 8 21:32:43 2012 -0700

    add lockscreen volume button music control (framework part)

        *long-press vol up for next, vol down for previous
        *screen must be off to work
commit 7cee3218014293da1d131f3adfd0a53c1b23a473
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Jan 13 22:03:51 2012 -0600

    volume button wake
commit 238568c72f140708d59db28ec520b15a35f12369
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Apr 6 18:03:49 2012 -0500

    adjust vol wake / music control logic

    to allow concurrent operation (short press wakes / long press skips track)
    based on patch from <daneshm90@gmail.com>

* drewis - adjusted for 4.{2,3,4} api

 This is the 2nd commit message:

PhoneWindowManager: let DISABLE_TOOLBOX remove vol/trackball customizations

 This is the 2nd commit message:

fix vol wake

Change-Id: I42c41f7ccba4cee377c31c144be1bbf2e339e875
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1