added display of incoming and outgoing invites, fixed bugs in invites create method and jquery