Laptopera Sampler: Make ~api and ~dir settable.