Split files into worker and main thread pieces.
Merge pull request #3530 from brendandahl/worker-split

Split files into worker and main thread pieces.