The origin of genetic coding and translation in protocells