Taunts can easily be added through buttons on units or buildings, thats what Deezire did.
Infantry go into autoformation when told to either guard an area as a group or when built directly from a barracks. You can also manually move the units/infantry then hit ctrl + F. The units will then stay in formation when moved around.