(Bug 48663) Updated data-mw for tpls and parser functions

* Fetch functionhooks from api config and use that to detect
  parser functions for appropriate wrapping.
* Updated baseconfigs with functionhooks info.
* Added namespacenumber parser function implementation that
  was missing (to keep parser tests happy).
* Correctly handles {{lc:FOO}} and {{lc|FOO}}.

* One additional wt2wt and few selser tests fail because code
  before this patch was incorrectly treating case-sensitive
  magic-words case-insensitively. So, the behavior in this
  patch is the correct.
* Additional tests pass because missing parser function impls.
  are now tpl-wrapped which cause them to roundtrip back to
  original wikitext.

* Updated blacklist as above.

Change-Id: I3b2fbf3b533b14680d2b881ac9fb43218d4f023a
Merge "(Bug 48663) Updated data-mw for tpls and parser functions"