Moodle updates

Lots of changes to Moodle and the core, including:

- Multiple endpoint support
- Settings store consolidation for the Wordpress plugin
- New samples
- Refactored code
- OAuth 2.0 bug fixes for Moodle