add test/server.coffee  #7
add tests of write/watch for client lib  #7