Major Refactoring

First major refactor. Wrappers for the UDP client and server have been
added.