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.
Shouldn't we check the boolean here as well?