Refactors tm_inflate and tm_deflate to accept type argument.
Adds support for deflate, deflateRaw, and inflate versions.
travisplexer: pr-172-linux travis ci test