can daemonize and write pid

Add features:
- demonization
- write pid
- write logs (stdout, stderr)
- read configuration from file