Serviceworkerhook

This request includes the latest two merge requests #61, #65 from @cdumez and @maheshkk respectively. Plus this request includes firing a task event to service worker hook.

Please note that the details should still be sorted out by the editor.