Edited the OAuth2 authentication system, and added the capability to get
the duration of an Event.