Rename things to match other collectors, refactor.

Pushed the call to lookup the app code into
the method for finding the uptime.