The Morse complex for infinite dimensional manifolds, Part I