When a couple bought a townhouse in Cambridge, Massachusetts, they were attracted to its 19th-century history, funky details and Jenga-like floor plan. The main level contained the primary living spaces and three small lofts. A lower level had a secondary bedroom. After living there a while, the couple…