added support for online / offline event firing on network settings change. fixes #663