client: implement initialization method

TODO: choose HTTP client and implement initialization for it.