Continue refactoring thread_safe_queue (now known as task_queue)

Refers #49
Fix API export
Make some classes explicitly nonexcept on copy/move
Add comment in message loop
Refactor search