Costa Rica Before Coffee: Society and Economy on the Eve of the Export Boom