migrate-history.sh: Add -o subdir option

This option allows the usre to specify a subdirectory of the incoming
repository to be imported, instead of importing the whole thing.
Only commits which affect that subdirectory will be migrated.