Slight refactoring to make connect_method more efficient.
Some preliminary work to refactoring stuff (requires connect_event which does not exist and some other things).
Merge branch 'master' into owrt-trunk

Conflicts:
	pm_core.lua
Added connect_event to connect events recursively.
Added few variables to ignored list - caused by Busted (sigh).
Refactored the pm code to be more modular. Now it should be possible to specify OWRT-specific handler-set and just use that as the handlers are very loosely coupled.
Merge branch 'master' into owrt-trunk
Moved use_ flags to config. This way, handlers have also access to them.
Fixed _pm argument (which is unused).
Added deep copying of usp/lap contents when creating new objects - this way we won't corrupt skv contents.
Merge branch 'owrt-trunk' of git://github.com/fingon/hnet-core into owrt-trunk

Conflicts:
	pm_core.lua
Added minimalist openwrt argument for pm, which replaces the stand-alone functionality with openwrt compatible stuff (namely, netifd).
Added Python-like setdefault and setdefault_lazy.
Slight performance optimization.
First draft of netifd handler + unit test for it.
Merge remote-tracking branch 'origin/owrt-trunk' into owrt-trunk
Ohops, was putting lap.prefix partss to addrs/addrs6 instead of lap.address.
Added device->interface mapping functionality which uses ubus network.interface dump.
Added testcase which mutates config and made sure it works ok too.
Added netifd handler to --openwrt.