Added messagin system between classes

~ Fixed bug in implementation of Manager::paintObject
~ Changed mutex to use locks
+ Added sendMessage function in Manager, Recognizer, Tracker