Making document a param of [[Register]] and [[Unregister]]. Fixes #390.
Address #393: change to fire updatefound on a ServiceWorkerRegistration object