Bug 939072: Refactor Sqlite connections to support finalization; r=Yoric

--HG--
extra : rebase_source : 2171ab3b3f7cf654ccc37865f5def9fc7f133e3c
Bug 939072: Auto-close Sqlite connections on finalization; r=Yoric

--HG--
extra : rebase_source : 07a2987082723c20b75667615a2d04e497d31f9a
Bug 1021060 - Testing framework for requestAutocomplete. r=MattN
Bug 1021031 - Remove temporary migration code added in bug 1019885. r=dolske
Bug 983197 - Test that downloads fail with an HTTP/1.1 response shorter than the Content-Length. r=enn
Bug 1026680 part 1 - Make decodeURI* work with Latin1 strings. r=njn
Bug 1026680 part 2 - Make encodeURI* work with Latin1 strings. r=njn
Bug 1026680 part 3 - Make unescape work with Latin1 strings. r=njn
Bug 1026680 part 4 - Cleanup str_escape. r=njn
Bug 1026680 part 5 - Make escape work with Latin1 strings. r=njn
Bug 1026125 - Check for current document accross shadow root when creating accessible. r=surkov f=wchen
Bug 1014355 - Fix ownership issue in X11TextureClient. r=cwiiis
Bug 1004110 - Memoize PCToLineNumber lookups in SavedStacks. r=terrence
Bug 1019923 - Prevent multiple confusing error logs in case the data channels does not get established. r=jib
Bug 1021776 - Disable peerIdentity test on B2G. r=RyanVM
Bug 1026704 - Prefer FMP4 over GStreamer. r=rillian

This change has to be made because FMP4 is meant to take over GStreamer for MP4 file format. This way, FMP4 will be instantiated by default over GStreamer if both tools work (on a certain Linux platform).
Bug 1023618 - Ensure that win.document.documentElement exists before using it. r=roc
Bug 997244 - Pull emulator.py out of marionette and into mozrunner, r=wlach,mdas,jgriffin
Bug 1022167 - Ensure fence delivery of thebes layer in b2g process r=nical
Bug 1022736 - Allow cacheing of GlobalObject getters on non-global scopechains. (r=jandem)