Move route library to lib/