Tax authorities in New Zealand are to allow income to be paid in cryptocurrency and have set out new rules on how such payments should be taxed.