Make qmozcontext API accessible from JS

these methods are used in QML auto tests.