reduce php logging for #508, PEARrification
ads added to previews
rebuilt
Merge pull request #183 from modilabs/master

ads, less php logging, php coding style improvements