use django storage backend and work around issues with redirecting output to a file

This uses the django storage backend instead of shutil to copy files. This is important if one uses an alternative storage backend for media files.

It also reenables the automatic output to a file of dumpdata due to errors with the original setup on linux/django 1.6.