Added proper version of AddContact.php, with the exception of connecting to the database (since the files are publicly visible and our database login information would be out in the open).

Consider revising query to take an email address instead of a the user id for the friend part of the query.