Request routing and library

@r0mant @russjones please review folks!