A rigorous approach to the Feynman-Vernon influence functional and its applications. I.