Revert "Revert "Live create tenants""

This reverts commit 1b02b8c11f7193f491b261e1da95def6bc07601b.
Rewrite lost JS code