Restructuring folder structure and adding build process
Export uibase as global
Modify files per new require syntax