main, AndroidProject: Refactor moving AndroidSDK inside AndroidProject

Also introduce main() function in main, and export it, along with the
command handling functions create(), help(), version(), so they can
be exercised by unit tests.