Timezones support

Work in progress!

Just want to make it PR to not let it fade away. Code needs a lot of cleanup, but AFAIR it was functional. There are also some issues with JS interfaces shift against configured timezone to be addressed.