webtest code improvement and cleanup
fix php5 notices, strict warnings and code formatting
Merge pull request #306 from pratik-joshi/webtest-improvement

webtest code improvement and cleanup
Merge pull request #312 from dlobo/NoticeFixes

fix php5 notices, strict warnings and code formatting