huge rewrite, split to base and yandex-specific parts

I believe, it's not really dangerous.
Just wanted to make sure that you had think about that :smiley: