Ch 653 - page variations

Refactored dialog functionality to make it re-usable across Lift modules.
Also switched to a single type of css selector determination code that produces more unique results.
This selector can also be shared across modules.