Added an authentication callback. Added the beginnings of a rate limiter