refactor code in friends controller and add not_befriended_with? method to resource User