Show invitations on project dashboard

These changes address this ticket: http://manage.dimagi.com/default.asp?115952

This PR adds a list of pending domain invitations to the domain select page (http://0.0.0.0:8000/domain/select/) with accept buttons next to each one. It also moves some of the logic for getting a users projects from a template tag and into the appropriate django view. I also created a new couch view so that I could get all invitations for a given user.
Normally seeing a full, un-chunked look-up like this is a big red flag, but in this case I can't imagine a situation where one user would have an unreasonable amount of invitations so I'm fine with it. Carry on.