Fixes the geopip lookup to return a json response and tests

Alright, check it out, not too terrible!
The issue is just how you references params in a dict. Woo!