Add the ability to specify default param values in register_json_route

I wanted to offload the handling to the request from the server, but could go either way.