Added ThreadError and used it in the thread module
Raised version and updated changelog