This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
Change-Id: Ib1dc595e53d64901f81d06350c6ab9b138beff7e
Change-Id: I4ae65227ea29dff8a79bd1d9373dec46c4b53598