Fixed some problems likely caused by WikiPage changes.

* Made the autoreview hook pass the whole FlaggeableWikiPage to FlaggedRevs::autoReviewEdit
  since it already has data loaded from the master DB. Updated the later function to pass
  the WikiPage to stableVersionUpdates(), which was modified in turn to accept WikiPage
  in addition to Title objects. This carries over the cached fields either via a WikiPage
  getting passed in directly or the getTitleInstance() logic reusing a WikiPage.
* Also cleaned up some use of bit math while at to actually return booleans.

Bug: 46941
Change-Id: I833481d9200e834518bb74cac0606d3d4550212e