adds wifi events from js

Goes with https://github.com/tessel/runtime/pull/264