change to new api with view and view.panels instead of cmxJSON. Word
Merge branch 'viewapi' into feature/newapi