Add MMDB_lookup_sockaddr function to libmaxminddb

This lets you look up an already resolved address.

Also added tests for this.
Don't let indent reformat auto-generated prototypes.