Add support for online and offline events; make nokia.phone-status return correct connectivity info

This is still a WIP, there's a weird bug in a MIDlet I'm testing that I need to fix.
The MIDlet I'm testing with never does (it always sends the Query event with "Disable")