Implemented most of friends API, just nneeds testing.