Add EventQueue and refactor router frontend to use client/cache

Lines 177-179 should no longer be necessary