Scotland is on track to change prostitution laws to prosecute punters who pay for sex and criminalise those who profit.