adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
why is there a separate flag as opposed to callback_payload = NULL ?