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