#1: optimized main method generation by removing unnecessary jumps

#2: onCreate methods in ContentProviders now run before everything else