Dumpscript now has hooks to a file called import_helper.py

Now dumpscript tries to load a (non existing) file called import_helper.py

If it is able to load it, it will run locate_object() and save_or_locate(the_obj) from that file.
This means one should never have to edit the generated script again!