Added tests for friendships controller.
Added gravatar for profile page.