Fix swig, add infrastructure for cancelling multiple jobs

Signed-off-by: Uli Schlachter <psychon@znc.in>
Add the relevant undefined constructors in Threads.h

Signed-off-by: Uli Schlachter <psychon@znc.in>
Some fixes

Signed-off-by: Uli Schlachter <psychon@znc.in>
Add an (ugly) threading / CJob test

Signed-off-by: Uli Schlachter <psychon@znc.in>