Minor changes to logging flags and function reordering.
Segregate files, ad an iAd-only demo project.