adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
cool. mostly i want the hw_digital_write stuff in another location, even if it's just called from here