Split up routes into multiple files. Fix #694