some base classes for daemons.
added some more methods.
added more methods to services.