Request routing and library

@r0mant @russjones please review folks!
This line seems strange, we should never match the node unless we've consumed all the input