Moved bug fixes from rev_acct/workflow_engine to here.

### Base branch (merging into):

master

### Pivital story link:

https://www.pivotaltracker.com/story/show/76787964

### What was the issue?

The system must start up, run, shut down, and start up again when there are 2,000 processes in the ruote tables.

### Resolution?

Bug fixes in ruote.

### How did you verify the fix?

Test program and 6000 workflow documents.

### Changes to deployments (new settings)?

New Gemfile settings in revenue accounting.

none

### Screenshots:

n/a

### Delete branch after merge?

yes