From Wall Spaces to Cat(0) Cube Complexes