Added plot saving, qsettings and fixed frontend destroyer

Added functionality for saving plots

Set application name for using QSettings later on

Fixed window destroyer by turning it into a handler for CloseEvent
Added ESP300.motion_done and ESP300.wait_motion_done