moving clipboard and modals angular utility code from wallet controller to separate AMD modules.