Add SignalsMixin.addSignal() method

This method can be used to register signals one-by-one instead of
bulk registration with registerSignals() method. Registering
signals one-by-one allows us to add doc comment above each addSignal()
call.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Rename init-request signal and add doc comment

The new name init-app-runner is more specific.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Connect Nuvola.Player to init-app-runner signal

No need to call Nuvola.Player.init() manually.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Let web_engine load pages from web app dir

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Create WebAppPrototype for common init actions

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Catch window_object_cleared signal early

Catch window_object_cleared signals early not to miss them, but process
them after the WebExtension is fully initialized.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Move page_created signal handler to WebExtension

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Add WebPage.get_main_frame() to webkit bindings

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Add signal Nuvola.Core::init-web-worker

This signal is emitted just before a web page is loaded in the main
frame of the web view.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Join merge init.js to integrate.js

It should be easier for service maintainers to maintain single file.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>