.functions: Improve `httpcompression` and move it to its own file

Closes #162.