Merge pull request #1 from nikicat/master

huge rewrite, split to base and yandex-specific parts
migrated to dominator 4.x