Refactored and cleaned up APplication class in preparation for Android ports "glutlike" design.