add basic ActiveRecord-based workflow state functionality; closes #26