Add threading and nesting for lab#2.

TODO: Add proper output, tests, add relative urls support and change input format (1 url => file of urls)