Bug 998466 - Port bug 841096 part 1 [TypeError: engine.locallyOpenTabMatchesURL is not a function]. r=Neil
This also ports Bug 990872 |Eliminate Places dependency in Sync utils|.
Landing safe unbreak-about:sync-tabs fix on a CLOSED TREE