Some tweaks and fixes

Fixes:
* Fixed html error when using xdebug
* Removed security vulnerability - using a filter to validate the options on upgrade opened it up to potential security issues
* Better js escaping for people widget

Other:
* Enhanced some of the documentation
* Refreshed code style codesniffer & adjusted code to match
* Added extra index.php files where needed
* Spelling check