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