Starting to separate server api from game specific code
getting there...
fix serialisation confusion
consistent type variable names
fix things