Improved the guessing of capabilities on Travis

The logic is not duplicated anymore between BrowserStack and Travis, and
user-defined capabilities now win over guessed capabilities.
Refs #140
Added capability guessing for Jenkins

Replaces #140