Adjust available memory based upon the thread count
Merge pull request #727 from melissalinkert/rebased/dev_4_4/big-image-oom

Data tests: adjust memory calculations based upon thread count (rebased onto dev_4_4)