now validates chrome packaged apps device ids
refactored away some duplicate code
Merge branch 'chrome-apps-variant'