initial import of lib
minor
added test gui
build fixes
more build fixes
added docs etc, more build fixes
rename
split lib daemon and clients
Merge pull request #2 from olear/lib

good enough