refactor angular code to use namespacing, move some files around, remove unnecessary views