Upgrade question plugin to Moodle 2.x

Using the template by Jamie Pratt at
https://github.com/jamiepratt/moodle-qtype_TEMPLATE