Add travis configuration.
Only run widget tests if PyQt is installed.
Skip sql tests if psycopg2 is not available.