Move client constructor to the top level
Move client constructor to the top level

This allows testing of individual functions using the pytest
name matching functionality, and better decouples the tests.

For example this will run any test containing the string
'recent_search':
	pytest -k recent_search

DocNow/twarc,hugovk/twarc