V4.0

I have all the PHP variant wet-boew v4.0 samples working on my home server. Merging them to the main v4.0 branch for testing and critique.