(Bug 51090): Follow-up to 4dce7f620: handle transclusions + html2wt mode

* This builds on the previous patch to handle transclusion scenarios.
* Also some code cleanup.
* Updated parser tests and re-organized it a bit.

* Explanation of blacklist changes:
  - Output of bug 553 testcase has changed (the new output is correct)
  - Since serialization part is not yet fixed, wt2wt for this testcase
    is also failing, which implies associated selser tests fail as well.
  - Because of change to the bug 51090 testcase, wt2html, html2wt, html2html
    and selser outputs (in fail scenarios) also change.
  - Since transclusion scenarios are now handled, 6 selser tests
    are now passing compared to earlier.
  - "Parsoid: dot-slash prefixed wikilinks" test case now passes wt2wt
    and associated selser modes because of html2wt fix.

  - TODO: Investigate remaining nowiki scenarios and selser failures.
  - We have a html2html failure introduce by this and the previous patch
    because of the leading "./" introduced by the serializer below.
	To be investigated and fixed later.

[subbu@earth tests] echo '<p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar">Test</a></p>' | node parse --html2wt
[[./User:Foo/Test/63636:Bar|Test]]k

Change-Id: I31c69afb3063a22058d34167e0942b5e9c060c32
Merge "(Bug 51090): Follow-up to 4dce7f620: handle transclusions + html2wt mode"