Biodiesel refinery