Redirect old-style permalinks to new ones.

So old permalinks of the form ?title=Talk:<FlowBoard>&workflow=<topicUUID> work.
In general, if we attempt to load a specific workflow by ID, and
it comes from the wrong title, then redirect to that title.

Bug: 68224
Change-Id: I77e6db76e59cd0a194d8a35e11d753ff8238be3f
(cherry picked from commit ad3ccaf65c9ac40648b08499427112acd6e2d2e7)
Fix re-open topic

Close/reopen failed when topic already had a summary, because it didn't pass the
previous revision id along (required for edit conflicts)

Change-Id: I7f2e103fde3f7a9b373a49a64b9ffd407b42f5b9
(cherry picked from commit 4706ae30439d99e7305b53cb74634a3f14c8472c)
Merge "Fix re-open topic" into wmf/1.24wmf14
Merge "Redirect old-style permalinks to new ones." into wmf/1.24wmf14