Allow stats on non request handlers

The only restriction to the decorators now is that they only work with
classes. But this is a point that can be improved.