Z-measures on partitions and their scaling limits