Complete re-write to follow jQuery plugin guidelines
and simplify the configuration.