What did the abbot remain as a town built inside the abbey?