Refactoring of autoRecordInstalls.
Merge pull request #7 from kissmetrics/autoRecordInstalls-refactor

Refactoring of autoRecordInstalls.