making events emit after userscript runs

goes with https://github.com/tessel/runtime/pull/649
Throw a helpful error if text is not one of "unsecure", "wpa", "wpa2"...