rdbaker, jnallard: moved mailing to server side, as well as updating the game status based on the deadline. Does not currently work