Created CmClient class

This is preparation to making the class into a library
Added more files to ignore
Added LOCK message processing