(feat) Convenience impl of Before and After Middleware for bare functions.