Refactored android_core

Refactored android_core so RosActivity can be used as a component, allowing the use of fragments among other things.
Formatting here looks funny. Is this auto formatted?