Generic server and client framework for a MMO