Refactor Resolver error tests to mock getaddrinfo.

This appears to be necessary in a vagrant ubuntu/trusty64 VM,
where the resolver takes over 5 seconds before returning an error.
Add an ubuntu 14.04 vagrant config; drop 12.10.