Enable testing using travis-ci.

This one's nothing special. The idea is that the github mirror + any github fork can use travis-ci to do testing. Applying this Gentoo-wide will remove the need for applying similar patches locally and diverging therefore.