add accessor functions to plugins contexts

This allows scripts to request more info from the engine.