Question types

Essentially this PR includes updated javascript which renders all the question types described in the API documentation.