Rearranged shim code; plugin-specific mockups can now be placed in separate files.