3.0 orm cache shell

This implements the console tool described in #3462.

The tests may not be perfect yet as I wasn't able to run the full suite on my work computer due to PHP installation issues. I'll get any failing tests resolved tonight.