Successfully separate and refactor gui.grid object to gui.
Refactor devices into Typescript class module from object.