refactored intelliplug stats gathering for use with proprietary modules

This should allow intelliplug to be used without affecting kernel binary compatibility.