Rest-style handler with delegation to ES.