Add support for automatic content index

Signed-off-by: Michael Buesch <m@bues.ch>