A developer plans to demolish a historic 19th-century building in Somerville to construct a four-story self-storage facility.