refactor http-json handler creation

we used to use static variables secret & creep_plugin, replacing those
with instance variables by wrapping the handler in a closure that
instantiates the handler with those variables.