Add all_listings_for method.
Raise an error if no host is found.
Try 5 times before aborting rpc call.
Only close the socket if it was created successfully.
all_listings_for returns an empty array when no listings are present.
Merge pull request #127 from brianastien/master

Prevent infinite loop when looking up services