adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
oh. use a uint8_t if that's the case, otherwise leave this.