Add some api to the runtime interface. This is pretty much done on-demand for now. We may need to sit down and see exactly what we would need to expose.