Merge pull request #37 from maxmind/dave/fix-missing-free

Fix a memory leak reported in #36
Style fixes - NULL != foo (not the other way around)
Make sure to call freeaddrinfo on a getaddrinfo error
Doc all changes for 0.5.6