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>