Add travis configuration.
Only run widget tests if PyQt is installed.
Skip sql tests if psycopg2 is not available.
Merge pull request #79 from astaric/travis

Add travis configuration.