Move and rename `Application` class to the `kernel` package.