Fixed some egregious bugs with code for creating unique directories.
Minor code modernisation to configuration-file parser. Fixed bug when stripping redundant configuration parameters, revealed by modernisation.
Modernisation cascade: refactored import process to use URLs instead of string paths. Cleaned up a bunch of dead code.