client: remove unfinished longpoll support
client: refactor transport-agnostic layer away
client: use API v2