"At a high level, all you need to do is get the icon into the templateimages directory, and then map the extension to the icon in templatexmldocicon.xml. Then you reset IIS, and voilà, you have your mapping."
This works! Read the post for more details.