Fixes and features for migrating dgud6.

This should be a fully working migration for the D6 site to D7.