Add spec for Template#duplicate

* fix adjustment day bug
Remove unit test of Project
Validate dependencies from other projects on Template
Add dependency fields to template edit page
Remove unused render_task_for helper method