Added threadpool library, tests and travis integration