Started to fix invitations.

Now it is possible to invite someone who is already registered with the
site. Depending on that acceptance leads to signup page or login page,
marks user as "invited" and so on.