Close #9. Added new drawing dialog.

Moved all editor functionality to namespace PE and all the UI stuff to
namespace UI. Needs restructuring.