fix strict notices from PHP 5.4
fix formatting
fix notices and strict warnings from PHP 5.4 in running webtests
Merge pull request #213 from dlobo/NoticeFixes

Notice fixes