refactoring. Angular controllers moved to seperate Angular module. Menu creation moved to Angular factory.