addressing mark traceur’s comments

<https://gerrit.wikimedia.org/r/#/c/59405/11/includes/Config.php>
<https://gerrit.wikimedia.org/r/#/c/59405/11/resources/js/ext.gwtoolset.js>

* removed jquery.ui from the extension, replaced it with resource loader’s jquery.ui modules
* re-factored var definintions so a list of vars has undefined vars listed first
* re-factoring += 1 to ++
* re-factoring html element creation from e.g. $( '<div />' ) to $( '<div>' )
* re-factoring .attr
  - so that when only one attribute is added, it is added directly rather than as an object
  - so that when an object is used, each entry is on a separate line
  - so that when non js reserved words are added as part of an object no quotes are used
* re-factoring mw.message so that it is called once for each message, which is then stored in a messages object
* added in use of jquery.spinner
* re-factored addButtons()
* re-factored the creation of back links
* re-factored some code comments
* re-factored the prompt for the name under which to save metadata mappings

Change-Id: Ia65c21b56b57c39ae4f58efb0f7f3248e69e96e2
addressing jenkins issues with variable names

Change-Id: I2adc26016f3a45f0489bff91da8c6872ba433844
addressing jenkins issues with variable names

Change-Id: Ie7fded4b10872409af1d3dde71b1515f1a1cf12a
addressing jenkins issues with variable names

Change-Id: I839d5a436ea3b795efb8825e750c837fb6104562
got rid of the superfluous newline noted by siebrand.

Change-Id: I07febe5b94a1f311fe7c7d974aefec9c43e8381e
addressing brian wolff’s comments

<https://gerrit.wikimedia.org/r/#/c/59405/11/includes/Helpers/WikiChecks.php>
<https://gerrit.wikimedia.org/r/#/c/59405/11/includes/Hooks/Hooks.php>
<https://gerrit.wikimedia.org/r/#/c/59405/11/sql/table-create-gwtoolset-mediawiki-templates.sql>

* re-factored increaseMaxImageArea() and increaseMemoryLimit()
* re-factored use of db table so that we now rely on an array for the “default”
  template parameters

Change-Id: Ie58a56bc33f9393330e9d564ca01ebc5e0d60a6e
moving environment check to the SpecialPage class

Change-Id: Ic25b6468d47a15b1a20113eb1c00c741e174e2f5
adding in logo asset

Change-Id: Ib569dec5e56053b508c61321e8af10e5bc40be78
removing the db schema hook

Change-Id: I96b491bb2861d8d618dcc9bf44a4fb905ca5b9df
removing the db schema hook

Change-Id: Ie569fd789f4ab4c3389e3e8c7fb811b9c8c02945
* setting-up initial draft for using FSFileBackend
* re-organizing Config.php and adding more documentation

Change-Id: I293836d520e6e165783182a3872c26cb5ec7adcb
* added default text to the title and href text of createBackLink()
* added a comment on the keyCode within handleDialogKeyUp()
* re-factored the messages so that messages are now retrieved from within the
  calling functions rather than from the messages object
* re-factored $ajaxLoader creation
* re-factored the attribute assignments within handleSaveMappingClick()
* removed the setConsole() method and its related calls

Change-Id: Id1b076614643cd1d68860feda441d7caa5a880c5
* removed jquery.ui from the extension, replaced it with resource loader’s jquery.ui modules

Change-Id: I17d972f9d2d033963db8b97c1feacce0c3abdfb6
* removed jquery.ui from the extension, replaced it with resource loader’s jquery.ui modules

Change-Id: I20a8fb0c44827dd9b31f531cbf82ba94501fb9b8
* re-organizing Config.php and adding more documentation

Change-Id: Idbae2b740f6f8fd20458483f27127f4309ddbcb6
* attempted to add correct grammar, full technical terms and punctuation to the i18n documentation
* cleaned-up some i18n keys
* added an HTML form to the save mappings dialog and removed the keyUp handler

Change-Id: I0733d980feb0e075953b8b1a78ffea22d3bd1851
* removing global from the jslint global declaration

Change-Id: I232f6b5dc7f38f3b2d1c39155e7ec516dfabeb6b
* moved json_last_error check from Mapping.php into its own shared function
* added a method that attempts to retrieve TemplateData for a MediaWiki Template,
  which falls back to Config::$mediawiki_templates

Change-Id: If36dd5539c2d9fc4d0d678b9f6caa82275abfb03
addressing brian wolff’s comments

<https://gerrit.wikimedia.org/r/#/c/59405/11/includes/Helpers/WikiChecks.php>
<https://gerrit.wikimedia.org/r/#/c/59405/11/includes/Hooks/Hooks.php>
<https://gerrit.wikimedia.org/r/#/c/59405/11/sql/table-create-gwtoolset-mediawiki-templates.sql>

* added GWToolset.namespaces.php
* changed all references to Exception, where applicable to MWException
* re-factored increaseMemoryLimit() and changed its signature to checkMemoryLimit()
* re-factored increaseMaxImageArea() and changed its signature to checkMaxImageArea()
* removed /Helpers/WikiPages.php
* renamed $metadata_mapping_subdirectory to $metadata_mapping_subpage
* renamed $metadata_sets_subdirectory to $metadata_sets_subpage

* Config.php
  - added a $use_UploadStash variable
  - added onCanonicalNamespaces hook
  - changed $mediafile_namespace to NS_FILE
  - removed some outdated properties
* functions.php
  - added getTitle() to replace WikiPages::getTitleFromUrl()
* GWToolset.php
  - added namespace definitions
* GWToolset.i18n.php
  - added gwtoolset-mediawiki-template-does-not-exist
  - modified gwtoolset-api-call-unsuccessful
  - modified getoolset-developer-issue
* Hooks.php
  - added onCanonicalNamespaces()
* Mapping.php
  - adjusted references in getMappingName() to Config::$metadata_namespace
    so that it gets the namespace as a string using
	Language->getNamespaces()[Config::$metadata_namespace]
* MappingPhpAdapter.php
  - added Title::makeTitleSafe() to the create() method
* MediawikiTemplate.php
  - remove Php\Curl reference
* MediawikiTemplatePhpAdapter.php
  - added Title::makeTitleSafe() to the retrieve() method
  - added $wgScriptPath and urlencode to retrieveTemplateData()
* MetadataDetectForm.php
  - adjusted references to Config::$metadata_namespace so that it gets the
    namespace as a string from
	$SpecialPage->getLanguage()->getNamespaces()[Config::$metadata_namespace]
  - added a bit of logic to determine correct fields to display depending on the
    Config::$use_UploadStash setting
* MetadataDetectHandler.php
  - augmented the processRequest() logic for storing/retrieiving XML from
    ContentHandler or the UploadStash
* MetadataMappingHandler.php
  - augmented the processMetadata() logic for storing/retrieiving XML from
    ContentHandler or the UploadStash
* MetadataMappingForm.php
  - added metadata-stash-key hidden input field
* SpecialGWToolset.php
  - added $this->setHeaders()
* UploadHandler.php
  - added saveMetadataFileAsStash()
  - added getMetadataFromStash()
  - added Title::makeTitleSafe to
    saveMediafileAsContent(), saveMediafileViaJob(), saveMetadataFileAsContent()
  - re-factored saveMetadataFileAsContent()
  - changed getTitleFromFileOrUrl to getTitleFromUrlOrFile, which corresponds to
    the way it processes the two fields from the HTML form
  - re-factored evaluateMediafileUrl(), adding getFileExtension(), which uses
    $wgFileExtensions and MimeMagic to determine and evaluate valid media-file
	types and extensions
* WikiChecks.php
  - removed verifyCurlExists()
  - removed checkMaxUploadAndIniSettings()
* WikiPages
  - removed titleCheck()
* XmlHandler.php, XmlDetectHandler.php, XmlMappingHandler.php
  - removed the $xml_source pass by reference

Change-Id: I3a6d39f61d928270d41683ff58b664a56b9be0e1
adding in change from js branch

Change-Id: I8a836b31dcc5c777cfa42c929f8552642390518c