Propagate config through jsonclass

When using custom Config instance for server, user defined handler functions do not get to jsonclass.dump where they are used.