[lib] add daemon support class
[lib] add daemon support class
[lib] include sys/ioctl.h in i2c-fake.h

makes the ide on mac happy
[lib] daemon: don't throw but call exit

if doing daemon stuff goes wrong, we can't recover
anyway
[lib] daemon: minor error logging cleanups
Merge branch 'daemon' of github.com:gicmo/noisebox into daemon

Conflicts:
	lib/daemon.cc
[lib] daemon: encapsulate signal handling
[lib] daemon: remove unused function
[sensord] remove old datastore loop, now unused
[stored] use environment for db
[stored] convert to daemon
[sensord] convert to daemon
[lcd] turn into super simple daemon