Move everything into common, client or server.
Merge pull request #103 from pretenders/seperate_server_client

Move everything into common, client or server.