Ring middleware for applying rate-limits to handlers