On MSDN check out the documentation on:
- Custom Project and Item Templates.
- The IWizard interface
- Custom editors
- General Visual Studio.NET Extensibility
And last but not least, since you're already quoting the ASP.NET MVC project as your example, it's open source and you can see how it's done right on codeplex.