Move logic out of the server/client classes and into the API class so the server/client just deal with getting a parser and hooking up to I/O.