Re-work the WP_Mock setup routine to add a bootstrap method

Remove unnecessary mock functions that are interfering with Patchwork in some cases