Add scoring for StupidRobot
Adds scoring to StupidRobot with a simple formula. In addition, this commit
creates a new reset action for the GamesController which saves the score to the
database (UserToGame). After saving, it resets the game engine and starts a new
played game session.

The scoring algorithm awards N points for each accepted tag, where N is the
length of the word. Thus, the maximum points possible per round is 49.

Known issues:
 - Because the reset action creates a new PlayedGame entry, it ends up adding
   one empty entry to the database per window session.
StupidRobot: Add in-game score display to final screen
Adds an in-game score display to accompany the StupidRobot scoring algorithm.
Note that the two are completely independent - while it is possible to falsify
the in-game display, it will not affect the overall scoreboard.

As a part of adding the score display, the HTML structure of the final screen
has been redone, removing the questionable use of <span> elements and
line breaks, and replacing them with a table. This also allows for easy
alignment of the score counters with their respective words. In addition, the
empty 11- to 13-letter word spaces remaining from an earlier revision have now
been removed entirely.

Aesthetic changes will likely be made to the display before merging this branch
back into the development branch, but the functionality is finished. In
addition, there is a known bug where the display will sometimes not animate;
this is an inconsistent problem and the cause is not yet known.
StupidRobot: Fix flashMessage overwriting final screen

The flashMessage function is used to display StupidRobot's response to a user
submission, first showing the response, then restoring the text to its
original prompt ("Human: what is in this image?"). However, if it was called
and then the final screen was immediately shown (either by time limit or by
clicking the "Quit" button), then it would overwrite the final response ("I
now comprehend X more words...") with the original prompt.

This was due to an HTML element ID conflict between the in-game and final
screen messages. The latter's ID has been changed from "gameMessage" to
"endgameMessage", resolving the issue.
Merge branch 'stupidrobot-score' into development

Conflicts:
	www/protected/modules/games/views/stupidRobot/index.php

The stupidrobot-score branch adds score functionality to StupidRobot, both in-
game and on the scoreboard. See the individual commits for more details.