[#169][Usability and Style Issues] Popup cart contents behavior

-- Encapsulate a pop dialog window widget so that it could be used by
the other components including the popup cart

-- Add the pop dialog widget script into the template layout page