re-factoring based on MarkTraceur gerrit comments

* added {} where missing in @var, @param, @return, @throws comments
* re-factored yoda comparisons to identity comparisons
* re-factored XmlDetectHandler->getMetadataAsTableCells() add methods getButtonRowNoMetadata(), getFirstRow(), and getFollowingRow()
* re-factored XmlDetectHandler->processXml(), changed the way it throws exceptions
* re-factored html generation to use Html class
* re-factored underscore array keys to hyphen array keys
* re-factored throwing exceptions in FileChecks & WikiChecks
* re-organized Php/Filter.php and added comments
* refactored ext.gwtoolset.js
** added in the use of jquery dialog
** re-factored addCategoryButtons & addMetadataButtons -> addButtons
** re-factored handleCategoryButtonAddClick & handleMetadataButtonAddClick -> handleButtonAddClick
** re-factored handleCategoryButtonSubtractClick & handleMetadataButtonSubtractClick -> handleButtonSubtractClick
* added method functions.php\getBytes()
* added WikiChecks.php checkMaxUploadAndIniSettings()
* added FileChecks.php checkContentLength()

Change-Id: I7f1accd037852d64f9e071d8ba1ac9ea3a9b2722