[NRY] adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
Change tessel_wifi_connect to take length arguments. These (buffers) are not necessarily null terminated, so it can't use strlen.