Add boilerplate code for LaTeX-code dialog.

 * Change from PyQt4 to PySide because of license incompatibility
   between PyQt4's GPL and this projects Modified BSD. PySide is
   licensed under LGPL, which allows this project's code to retain
   its current licence.