Refactoring.

* Move UI logic out of data entity.
* Use setPipeConfig instead of setNumPipes.
Merge branch 'develop' of github.com:masonwan/grid-playground into develop