EXHIBIT 10.45 Note, Preferred Stock and Warrant Purchase Agreement Dated as of December 23, 1997