Improve HTML chunking.

Fix [issue 368](https://code.google.com/p/daisy-pipeline/issues/detail?id=368)
Merge pull request #29 from daisy-consortium/issue368

Improve HTML chunking.