Use 'onPreHandler' extension point

Switched to using onPreHandler because the payload isn't parsed yet when
onRequest is called. The payload can be useful in determining what
Postgres connection to use.