Past Answers and Gateways

Added code to make GatewayQuiz store answers in past_answer database.

Note:  This means that the Answer Log page can now be used with gateway quizzes.  This still has to be done "manually", i.e. there is no past answer button on the Gateway Quiz page.