A rare Revolutionary War-era farmhouse at 25 Cranberry St. has hit the market for $4.9 million, marking its first public offering in nearly three decades.