Support multiregion

I've merged now, mostly manually, chirun's changes. Many things aren't implemented yet or don't work as expected.
I just wanted to let you know, that I started working on multiregion update and how much is done. I will push my commits to this branch, so they will appear in this pull request.