created invites model and invites controller

Created invites model and invites controller and updated model relationships between users, events and invites.