Function isWebWorker

Helper to identify if you are running as a Dedicated, Shared or Service worker