Adding a jquery plugin for extended dialog widgets. Using it for library for now.
Also some restructuring.