Management of solid and liquid waste from livestock production