Fixed #171. Declined invite will be mark as ``declined`` in db.
Fixed #172, pending should be the status post creating invite.
Merge pull request #173 from yeukhon/invite

Fixed #171 and fixed #172