add http server (supports adding queries and matching documents so far)