Move interactive shell functionality to the application context