Decrease code duplication

Make isInactive(), isActive(), isCanceled(), and isFinished() a simple
convenience accessors to state(), like they ought to be.

Change-Id: Idd72ed7bda9041b8d58095f2813a78a012c4ce2e
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>