Provide partial support for API 9 and above. Basic refactoring.

HomeActivity still doesn't work on gingerbread.