Added the first (mostly) working version of the client side.