Updated to latest libraries, SDK and build tools
Added support for PreferenceFragment
Code cleanup