Improved HTTP dispatcher to send responses easily.