[XWALK] Refactor Device Manager