Implements file processor support

- Add support for "raw", "gzip" and "splitted_gzip"
- Minor refactoring