Added beginnings of StateMessage validation and tests

I only got as far as Lobby messages before I  had to go do other things.