Add interface and persistence of pre-existing permalinks.
Tests refactored.