NEW Provide a consistent way of triggering flush using an interface

Anything that implements Flushable should implement a flush() function
which is used to clean caches, or do actions that need to run in the
times where ?flush=1 is called on a request.

This fix came out of an issue where Requirements combined files were not
being cleaned up after dev/build?flush=1, due to the fact that flush
would only occur when you called it while on a page that used those
combined files, but not in any other contexts. This will now call flush
on any implementors of Flushable regardless of the context of where
flush was called.