Added error handling to ajax calls.
Partially implemented invite-accept logic.
Partially implemented invite-decline logic.
Removed unneeded sanity check.
Added match creation logic.
Slight fix for accept invite.
Added invite polling code to page.
Added match controller.
Added functions to match controller.
Replaced the old getUsers function.
Implemented message sending.
Impelemented accept-decline in user view.
Added match view.