Prototype rebase

I rebased and rewrote some of the commit messages to clean up the history. I believe that this set of commits should conclude Android Foundation issue.

Please make sure that you can follow the instructions to import the project, that you can build it, and that I didn't break anything in the project.

Resolve #1 Android Foundation
Resolve #9 prototype pull request