Add options for thread creation cacelable/joinable and if a a reference is returned.
Threadfunc is now the traditional void *func(void *data)
Stopthreads has a join option if set to 1 will join the manager thread to simplify stopthreads/jointhreads.
framework_threadok takes no options now and will find the threa from pthread_self
Allow SIGINT/SIGTERM in threads signal handling [non win32]
Store fullsize in referenced object and return user size.
Remove tid field in thread_pvt
Add some dox
Base hash on thread id this should work fine
Add static function get_thread_from_id to return thread struct from thread id (self)
 Used in threadok and signal dispatcher
Stop threads will signal threads and flag them only cancel if marked cancelable
Manager thread returns and is joinable
Wait upto 100ms for thread to be added to list
Changes while commiting