Added new update action to use PUT requests and a new accept function to call the update connection service.
Refactored friend request directive to keep code DRY. New conditional to read the action and call the correct service.