Large push for various changes. I updated the preview page and added
some JS scripts and php ajax scripts for various functions needed in the
preview page.