base_utils: refactor lsmod related functions, use loaded_module_info

Seperate lsmod parsing from the actual lsmod call.
Use multline regexp so we don't have to splitlines
add unitests

Suggested-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
If you can make sure the output is always in this format, then it's good for me.
I didn't use regex because I'm afraid of irregular module output~
P.S. the unittest looks good. :)