Add EventQueue and refactor router frontend to use client/cache

Switch might look cleaner