Revert "Change ctx() and req() to opaque"

This reverts commit f12e5f0a0a522043003f4bb7305ea4f950dc0390.