Test RPM build on Travis-CI
Update .travis.yml
Merge branch 'master' into buffer_stats
Fix botched merge 244355b
Fix incorrect buffer size handling.

Switch from using AND (size - 1) to just MOD size so we can support
buffer sizes that are not powers of two.