refactor, using cljx to share common server and client code