Added BaseApiController with common functionality for creating responses and dealing with authenticated users.
Added validation so that a league owner cannot send duplicate invites for an email address. Fixed a bug where some of the LeagueManager tests were being executed.