Base view

Add base view.
refactor to incorporate base view.
Built with AMD and use almond for non amd.