make a library out of froglock (close #7)

- split froglock into a library part (with daemon,client,and message modules)
- updated main to use it