Moodle login handler

- validates user against moodle webservice
- user only has three login attempts until not able to login anymore
- options now handles half of moodle.api authorize function, need to be refactored