Rate limit API and enhancements

I kept the `routes.json` changes and the code generation in separate commits in case that's helpful.

* Adds the `X-RateLimit-Reset` header so that it is possible to tell when the rate limit window will reset.
* Adds `misc.rateLimit` for accessing `/rate_limit`.

Should help if people want to take a more adaptive approach to their throttling.