Add EventQueue and refactor router frontend to use client/cache

See my changes