Refactored app.js and moved some logic to toolbox

@hippee-lee @tsanko Changes to the method theme's app.js file. There is [corresponding PR](https://github.com/volusion-angular/vn-toolbox-common/pull/64) in vn-toolbox-common. Please move the story 29998 along to "Test"  once these 2 PRs are pulled in.