Added app generation, runners and graceful shutdown.