Several minor cleanups. Change BaseApplication to use protected fields for inner services.