Add realtime support to app_directory (bug #2475)