Made MediaBrowse directory persistence code more self-contained