Application now emits an 'attach' event when middleware is attached, renamed 'MiddlewareInterface::initialize' to 'attach'.