Store friendships in another table

* Friendships are stored in table 'friends'. They work one-way
* Rewrote friends API. POST requests to friends.php either set all of a user's friends, add or remove someone from the user's friend list.
* Updated prifile, loadquestions, reportq, viewq, search and sent to that new API

Closes #8 and fixes #24