Cleanup, copy only important templates.
Fixed template inheritance and template targets resolving.
Fixed for Dj1.5