Base class for applications.