Futon with folding bed base