Production of biogas and other value substances from organic waste