Add 'before' and 'after' template methods to Middleware::Base