Switch from spaces to tabs in main.js.
Restructuring to newer Angular style.
Adds placeholder for asset manager.