Molecular mechanisms of coat assembly and regulation in membrane trafficking pathways