internalize request handler registry

Register and seek request handlers in C rather than in Scheme.