Extract domain match logic into util
Rewrite the app logics
Rename /domains/ to /rules/
Implement server sent events
Store colo from request and refine errors process
Implement a eventsource client
Implement /rules/events and a squid acl client