Simplified template code + added a Polymer Dart-specific code

@umop

In particular, I'm not sure about our attitude towards `part`/`part of`, but those allowed me to keep the private methods of ProjectTemplates private. If we dislike `part`, then how about the same library name in all these sources? That would achieve the same effect.