Added first draft of the client and server api.