Add POST /schedule/routes endpoint
Closes #7
Add tests for lib/security