Fix bug calculating remaining bytes to read when reading a template.

The rounding needs to be applied to the originally calculated size to
read - not to the remaining bytes to read on subsequent requests.
Update version to 0.2.1-SNAPSHOT.