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 doesn't call *getBoolean* here, so I forgot to add the check.