Moved general MSCAN functions into
separate header and source files (include/mscan-base.h and mscan/mscan-base.c). Formatted code.