A Weak Convergence Approach to the Theory of Large Deviations