Adding Travis CI script

because a build test is useful
Merging the AR panels

because that reduce duplication

Fixing AR toggle (it used selection rather than event index)