Add dynamic priority for projects.

This priority is calculated in the application_helper and is shown in the projects table on the planning page.

Closes #9