Added back end fuctionality to friendships

All tests passing except for encrypted password