Get or set the current application instance. Used internally by route macros and middleware functions.