Add validation, timeout and change url scheme

All forms validate their input an show an appropriate error message.
Teachers can now set a timeout for the algorithm (not sure it works).
All urls to which the plugin redirects now contain an id parameter
(module instance id).