Made some changes to the daemon.
Improve slightly.
Use callback now.
More progress.
Merge branch 'feature/daemon-rest' into develop