Fix for Issue #17 and performance changes to country flag handling

Also includes first cut of spamhaus integration, but not tied into GUI.