Use different travis environments for QT4 vs QT5

This also splits each part of the travis execution
into its own bash script for easier reading and use!