Refactors routing

Splits routes into two files, one for authentication, other for
API