dispatcher: implement add, remove, update, clear; test/http: add dispatcher test for add()