Make names more consistent.

Add sendMessage and onMessage methods to Runtime.

Change Runtime to match style conventions used elsewhere (non-static members on class, global singleton).