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.
Perhaps `is_valid` instead to be consistent with `is_draft` being the positive case?