[NRY] adds wifi events from js

Goes with https://github.com/tessel/wifi-cc3000/pull/1
Don't do anything after tm_checked_call because it may longjmp out of the event loop and never get here. It's safe to free after the pushstring because lua makes a copy.