Moved dispatchHTMLEvent functions to Utils
Added 'init' JS event for info box

When the web view for the Info box is loaded, an 'init' JS event (with parameters 'user_id' and 'app_id') is triggered in the info.html page.

See #886.