MOBILE-783 messages: Relocate code and functions
MOBILE-783 messages: Relocate code and functions

Create new getMessages API function

bakasa/moodle101,moodlehq/moodlemobile,ardock/moodlemobile,iharris78/ctcswlapp,CEDITE/FACETVirtual.Mobile-OLD,ingoscarmorenoc/LLLLL,sudeepnayak/moodlemobile,taher552/tahfiz,sudeepnayak/moodlemobile,vmoll/moodlemobile,stefobark/moodlemobile,4r1y4n/moodlemobile,ingeniuslearning/moodlemobile,muhammadumarpatel/felarc,clopezlga/moodlemobile,iharris78/ctcswlapp,bakasa/moodle101,ingoscarmorenoc/ios3,yusa55/moodlemobile,elvincasem/moodlemobileous,moodlehq/moodlemobile,elvincasem/moodlemobileous,techguru123/MoodM,GG001/GG,dianjiaotong/moodle_apps_android,ingoscarmorenoc/ios4,ingoscarmorenoc/ios2,Vedran91/moodlemobile,vincent-nephila/amaumobile,danielsonnora/universidaderaffinato,4r1y4n/moodlemobile,techguru123/MoodM,Namikase/moodlemobile,moodlewebexapp/moodlemobile,ingoscarmorenoc/ios5,ingoscarmorenoc/ios5,moodlewebexapp/moodlemobile,navdeep300/moodlemobile,oustaban/moodlemobile,ingoscarmorenoc/ios7,ingoscarmorenoc/ios7,sergiopro14/moodlemobile,GG001/GG,ingoscarmorenoc/ios4,xrdcode/moodlemobile,guozhenqiang/hit,Ilmawankh/modle-elearning,ardock/moodlemobile,muhammadumarpatel/felarc,Vedran91/moodlemobile,dianjiaotong/moodle_apps_android,clopezlga/moodlemobile,ingeniuslearning/moodlemobile,ubaldojmp/Moodle-CUC,ubaldojmp/Moodle-CUC,Nithis111/AIT-Tech,ingoscarmorenoc/ios3,vincent-nephila/amaumobile,guozhenqiang/hit,tang7526/moodlemobile,vmoll/moodlemobile,CEDITE/FACETVirtual.Mobile-OLD,oustaban/moodlemobile,akinibrahim/moodlemobile,navdeep300/moodlemobile,Namikase/moodlemobile,xrdcode/moodlemobile,Ilmawankh/modle-elearning,danielsonnora/universidaderaffinato,ingoscarmorenoc/ios6,dianjiaotong/dianjiaotong_apps_android,akinibrahim/moodlemobile,dianjiaotong/dianjiaotong_apps_android,taher552/tahfiz,ingoscarmorenoc/ios2,Nithis111/AIT-Tech,ingoscarmorenoc/ios6,stefobark/moodlemobile,sergiopro14/moodlemobile,tang7526/moodlemobile