Various fixes and enhancements

Finished implementation of the protocols that start with a GetResource message
Fixed problem with ending and restarting a game.
Fixed another refresh problem.