Give Plugin a mechanism for injecting test-temporary entry points

@cpennington the thing I said I wouldn't do.