Fix edit views a bit
Fix sorting headers and remove unused files
Add foreign key constraints to DB and clean up TaskMaterial#cost
Clean up looks as well as queries for TasksController#index