Moved state document under '_local/' instead of '_design/'.

This is to ensure that it doesn't get replicated.
Merge branch 'develop' of https://github.com/ers-devs/ers into feature/ers-daemon
Allow for not creating a PID file
Added support for logging to syslog/systemd
Bugfix
Bugfix
bugfix
Merge branch 'feature/ers-daemon' into develop