[X2Go-Dev] Bug#469: Move pre and post scripts to common code and add scripts in select session