mainwindow: Move the preview asset logic to a new class
mainwindow: Allow pressing ESC or q to close the preview asset window
elements: Make sure the line remains straight when adding a keyframe when clicked

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711168
elements: Looks better this way