Turning Toilet Sludge into Energy

How can I use community toilets to collect and treat faecal sludge and convert it to energy?  Which technologies are the best to use to gain energy from sludge? Are there any alternative methods - I have heard of tiger worms which make fertilizer out of faecal sludge, is there anything similar for energy?