Add rate limiting and cache for m2m token authentication endpoints

,