Implemented the all friends table and the friend action.
Broke the accept function into two different functions to fix a security issue.