Further work on client; properly formatted messages according to spec, started working on initialization stuff