Refactor client/server to use OOP

Convert the client and server to use OOP style by putting all the
shell_* functions into PoetServer/Client classes.

Addresses #26