Bug 973450 - [settings] refactor Device information panel with AMD patte...

separate hardwareInfo retrieval and check update function into separate modules, and make related tests works in AMD.
if we use passed in elements, we can just access it from `_elements` directly and there is no such dom existed in `document`