Documentation fixes

Fixing some typos, mostly grammar and capitalisations (e.g. consistent use of PHP/php).

Also added link to DRY principle on Wikipedia page, for benefit of readers who may not have heard of it.
Small number of documentation fixes - mostly typos.
Merge pull request #315 from pwaring/master

Documentation fixes