Added test to demonstrate the custom foreignkey bug
Converted `CustomForeignKeyField` into an importable non-dynamic class
Only run migration state test in 1.7 or greater
Patch `CustomForeignKeyField.do_related_class` method for migrations
Don't set related object for migrations
Merge pull request #126