File chunking implementation (#2)

This is an extremely naive implementation that still loads the entire
file before passing it to the worker for chunking. @dchest Please
review :-)