added cancellation_token for thread exit
made cancellation token a separate class, fixed typo in f8test configs
merge from dev
Added cancellation token method as a parameter to thread construction
fixed thread exiting on join() call
added missed method
Merge pull request #36 from syegres/fixfor_fx-148_remove-kills

Fix for FX-148

I have created another dev branch fix8:dev-premain which we can use for staging less experimental changes. I will merge across to dev-premain when I have done more testing.