Gate defined wires in HgTe quantum wells: from Majorana fermions to spintronics — arXiv2