MODX Revolution 2.2.8-pl

Merge branch 'release-2.2'

* release-2.2: (21 commits)
  Remove debugging code (Loud Sigh)
  Bump version for 2.2.8-pl
  Fix pass var by ref error in modX::getInstance()
  [#9450] Prevent non-existent Context initialization
  Bump version for 2.2.8-dev
  Fixed offline problem described in http://tracker.modx.com/issues/6138
  Fixed icon for datefield inline editor in grid
  Fix of wrong icon for datefield in grid toolbar
  [#9946] - Please see http://tracker.modx.com/issues/9946
  [#9859] Fix a near infinite recursion loop on TV ouptut filtering
  Revert "Increase width of file and image TVs"
  [#9901] Fix empty resourceMap in sqlsrv
  [#9912] Fix length of modResource.uri index
  [#9846] Fix incorrect parameter order passed to findResource
  [#9814] Fix cross-context links using link tags
  [#9896] Reduces time to process TVs
  Refresh file list after file remove
  Fix remove file from root if no folder selected in tree
  Refresh files after upload if no tree folder was selected (root)
  Fix browser listing in root after media source change
  ...
MODX Revolution 2.2.8-pl

(previously tagged v2.2.8-pl is invalid)

Merge branch 'release-2.2'

* release-2.2:
  Prevent empty HTTP_MODAUTH from succeeding
Prevent Modx.console callback accumulating.
Previously, if you'd run modx.console X times,  the onMessage callback would be called X times, instead of only once.
Changed from anonymous JS function to named one to resolve this.
Finish hotfix-console-accumulating