Roots core code refactor init.

Started work on roots core. Layout.