Add a debug mode for serve.py
Initial support for XMLRPC communication with moodle