Bug 982663: collect and transmit app usage metrics

I don't like that one piece of the startup is done in a separate method. Please inline this here.