Fix file filtering in plugin.

Add ability to cancel a backup process.
Add compile-time option to allocate LZ4HC Data Structure on stack, however it's disabled for now.
use malloc instead of calloc
behave gently when dealing with empty region files.