Move Track writing to a Writer class

Also set a client ID