Added lazy initialization to some entities on find by id
Refactored moodle service. Implemented basic moodle auth. Moved configs from webroot, Miscelaneous changes to controllers, views