Add lib (broken)
improve api client
try to add check for daemon and fail

uhm...