Add the event publish() method to the Runtime definition.

Also rename Runtime.resources_url() to resource_url().