Make condition definitions more flexible.

Similar to actions, conditions can now be a string which redirects to
a condition definition elsewhere, or a array, which is short hand for
anding the array contents together, or a traditional condition.

Clean up an error message in the and condition.