Adds the ability to export by workflow state.

Fixes #25.