Hooked bridge callbacks to models.

Note: the judge side still needs to communicate points for each test case and test case ID.

Note: this commit doesn't define how to send a request to the judge.