Added an is_rejected field to Invitation model and view to search query pending invitations
List pending invitations on domain/select page and moved the logic for getting a user's domain from a template tag to the appropriate view.
Merge branch 'master' into show-invitations
Removed the code that I had added to allow the rejecting of invitations
Cleaned up domain selection template
Improved couchdb query
Removed superfluous new line
Better PEP8 compliance
Merge pull request #3828 from dimagi/show-invitations

Show invitations on project dashboard