[#2464] Use instance variables for daemon configuration.

Problem
=======

Daemon object uses class variables for configuration

Why we got into this
================

There was no review and I was writing stupid code :)

It was not really a problem since an application most of the time has a single daemon :)

Changes
=======

Change variables to instance variables.

How to test
==========

reviewers: @alibotean 

this is just to let you know about changes. the changes are used on the server side to support osx.

Thanks!