major refactoring of internal and module code

now much more readable, code is modularized to avoid repetition

zlibs contain conf/start/stop procedures for daemons
plus auxiliary libraries used by core and modules