Preserve linebreaks in HTML export
Re-designed IOUtilities directory handling so we can keep track of internal/external