Case 33215. Added Selection Detail Scripts for the safe synchronization and Android API compliance demos. It's now possible to use all demos without touching the interpreter.

Also cleaned up stray comments and compiler warnings.