Delete tasks and task runs via the web interface. Refs #318

This commit adds support for deleting the tasks and associated task runs with an application in an easy way.
Unit tests for #318. Closes #318

This commit enables users to easily flush all the tasks from an application.
Merge pull request #398 from PyBossa/issue-318-flush-tasks

Issue 318 flush tasks