[NRY] adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
Why do you pass the length from lua? You can get the length from `colony_toconstdata`.