Minor: Cleanup and comment update.

Change-Id: I502f838f55a0a7c046b9d5969a8e5fb6af0dbc10
Move migrateStartMetas pass after markTreeBuilderFixups pass

* This can potentially enable improved template wrapping in some
  odd edge cases.

* This change causes 6 selser failures (but which is actually a
  better serialization than the previous output).

Change-Id: I4fe332435c4d922feff989d6cda3f820a07e8106
Generate less timeouts on pages that make a lot of API requests

 * Increase maxSockets for API requests. The default in node is 5 per host.
   Parsing pages with lots of templates makes many concurrent connections
   that end up timing out. Bumping this up shaves at least a minute off
   that large test case in the bug report:

   fr/Liste_des_premiers_préfets_français_(1800-1815)

 * Cache and coalesce ImageInfoRequests.

Bug: 55585
Change-Id: Ia025a90a52b45c0816983d1b7b34fc074b6b4c4f
Merge "Minor: Cleanup and comment update."
Merge "Move migrateStartMetas pass after markTreeBuilderFixups pass"
Move data-parsoid into a JSON structure outside the DOM

 * IDs are generate with the following pattern,

     mw<base64-encoded counter>

 * Adds two flags to parse.js,

     --dp, Outputs the JSON structure

     --dpin <JSON>, Accepts the output from the above

 * Adds a configuration env.conf.parsoid.storeDataParsoid
   which is off by default to keep parserTests passing,
   but turned on with the above flags.

Bug: 52936
Change-Id: Ie58620d0909be3fcd3e9dcf84efaaa16c96d556e
ParserService middleware cleanup

Moves getParserServiceEnv to an express middleware.

Change-Id: I2bdc3aa5102d96e90515fe80b762f88bc8537175
Merge "ParserService middleware cleanup"
Updated migrateStartMetas to handle migrate both start/end metas

* As a mirror transformation to migrateStartMetas, migrate
  template marker end-metas that are last-children to their
  parent's sibling. This has the same benefit as the former
  transformation of more accurately bounding template-generated
  content.

* One selser test fails -- but arguably, a better result given that
  the parse output is a bit broken on this test case.

Change-Id: I5ca7caf5124acd91be8c6f1d4308f85e3f5daf4f
Disable persistent connections in curl client

This is a port of https://gerrit.wikimedia.org/r/#/c/92010/, which fixed a
performance regression in core. This might be specific to a broken HTTP
pipelining implementation in Swift, but for good measure lets port this to
our curl client too.

TODO:
Develop a shared curl_multi client in core

Change-Id: I92d3d4e20dc59b07b2e7964e5b979ca05ff71250
Bug 56058: Use https to pull in es6-shim

Also point to es6-shim master. Should update to the next release when that
becomes available.

Change-Id: If9e779003b1dad9f7615f6176669ff890c7d7d56
Bug 52938: Only trigger indent pre on spaces

Change-Id: I90149255cf0a6918ae8ff38a2f88b0d144893f18
Merge "Disable persistent connections in curl client"
Merge "Bug 56058: Use https to pull in es6-shim"
Bug 56195: Only trigger indent-pre on space

Change-Id: I4f8255d03dce047e96b60f0dee3909fb3c96fe37
Consolidate API for page-less html2wt / wt2html

  GET /prefix/page -- works just as it does now. No wikitext passed in.
  POST /prefix/{page} -- with page optional.
    - if "wt" is provided, convert wt2html. "body" flag to return just
      the body
    - if "content" or "html" is provided, convert html2wt

  The _wikitext and _html form inputs now share the same backend.

Bug: 55758
Change-Id: I7ce70b98be802ba0894826629b1a21a083a4fde3
Merge "Bug 56195: Only trigger indent-pre on space"
Merge "Consolidate API for page-less html2wt / wt2html"
Check for undefined as well

Currently breaking the _rtfrom/

Introduced in 560c79e9a1ee8d01bc9cc4b862f280fa6752a610.

Change-Id: I2c9cced3bd99bd33b36314ba2ce2be86d58e368f
Redirect GET requests for pages w/o oldid to oldid location

 * Redirects requests for the latest version of an existing page to the
   proper ?oldid=12345 URL to hit the cached version.

 * Adds no-cache if wt is passed in.

 * Adds a favicon.

Bug: 56283
Change-Id: I527772e693334ed7efa5f013f690d882c134dbe4