contact importing (originally from django-friends, broken out and enhanced)