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>
I'm back from KVM Forum, sorry for the absence.

Using modules such as kmod are the way to go, I agree with you. For now though, your patch looks fine, I'm going to give it another read.