Move service worker dataset context to a common space, to be used by notifications

Build: https://builds.cask.co/browse/CDAP-DUT353-1
Add a javadoc. Also add `@Nullable` as it allows null and actually depends on it to skip caching logic.