Seysmic Vulnerability and the Old Towns: A Cost-Based Programming Model