[Microsoft.Build.Tasks] Implement support for parameters in CodeTaskFactory

This whole string.Replace approach is wrong anyway - according to MSDN, CodeTaskFactory is supposed to use CodeDOM.