Bug 1036458 - Add Invalid checkbox to Edit Task page

This implements the ability to mark a task as invalid, which will make it unavailable to users. It will also cause any open attempts to be automatically closed.
Note that I named this `0015...` because there is another outstanding pull request with a `0014...` which I plan to implement along with this one.