Synthesis of beta-sheet peptides and proteins incorporating templates