Basic etag and gzip support, perf tests
Refactor options handling, fix unit tests