A scanning microcavity for in-situ control of single-molecule emission