Quasi-elliptic cohomology