Elgg plugin to run REST API