Register routes directly in listener prototype, solves execution order issues