Relative Hilbert scheme methods in pseudoholomorphic geometry