built in the 1830s to defend the bay , it was transformed over the years into the residence and offices of the island 's governor , and now holds the distinction as the oldest continuously-occupied executive mansion in the new world .