Dashboard: Started refactor of Graph Engine to merge into ui.js