Clean up do_friends function

Add new function to check for & handle timed out friend requests, called from `do_friends`. Just working to clean up the `do_friends` function.

The build succeeded but I'm not sure how to run the `Messenger_test` program. Any pointers you can offer?