initial commit of eventsystem, statesystem and tcp networking;