Refactoring.

Added the Cms\Application class.