Singular spaces with trivial canonical class