initial etag support working in firefox and chromium
tidy etag code