API for various compression codecs

First draft of API.
@trustin and @normanmaurer please review it.
s/does/is/ ... s/supperted/supported/