Surface tension (more properly called 'interfacial energy') is the name given to energy contained within a surface of discontinuity- typically a fluid-solid or fluid-fluid interface, where the concentration of the materials undergoes a discontinuous change as you cross the interface.
The energy can be thought of as the energy needed to create an interface- low interfacial energies are associated with wetting and spreading, while high interfacial energies are associated with nonwetting (often hydrophobic) interfaces.
A simple result (not simple to derive, but the result is simple to understand) is Laplace's equation- the pressure jump across a surface of discontinuity (say a drop of water in air) is given by \Delta P = 2\sigma\kappa, where \sigma is the interfacial energy and \kappa the mean curvature of the surface.
That's for the interface between two materials. When there is a three-phase contact line (say a drop of water resting on a solid surface in air), there is an additional line tension at the three-phase line. Similarly, if there is an intersection of two lines (say, neighboring drops of water and toluene resting on a surface in air), there is an energy associated with the 4-phase point. These contributions (line tension, etc) are orders of magnitude less than "surface tension", and AFAIK, barely measurable.
Some people like the model of 'unbalanced' forces on molecules, but interfacial energy is a continuum concept and thus cannot discuss molecular origins: as a simple example why using a molecular model leads to problems is the fact that at that scale, the interface itself is not precisely located in space.
In the context of the Young-Laplace equation, interfacial energies are represented as forces acting along the various interfaces to model an equilibrium condition, and this is done by representing the forces as gradients of the surface stress. This leads to a whole host of problems regarding continuity at the three-phase line, none of which has been resolved. One proposal is to require that solid-fluid interfacial energies (and the true contact angle) are not thermodynamic quantities- they cannot be measured, are not material properties, and cannot assume arbitrary values.