Exposing request to plugins

Closes #892