Add status and max_time_allowed for invites collection.
Validate and invalidate invite should work. See #114.
Fixed resent id not changed. See #114.