Made sidepanels closeable by dragging them

As opposed to only being able to drag their handle.

Also made sure the client still works with Qt 5.1 by reducing the
requested version of QtQuick.Layouts.