Updated Code for Connection Requests

Now handles most cases:
0 = no connect argument, no modal
1 = invalid user, user notified
2 = valid user, user allowed to request connection
3 = own self, user notified
4 = existing connection, not yet coded

The front-end changes will come in another commit.