Better chaining of HTTP handlers