added metadata extraction, thumbnail generation and first http handling