Worked on standalone samples as well as minor updates to moodle
Merge pull request #1384 from benjamij/php-api-rest-calls

Worked on standalone samples as well as minor updates to moodle