Add travis.yml, improve testing database

We now have a first attempt to use a travis ci server, also we now clear
and regenerate the test database each run instead of hoping that the
test database hasn't been modified since the last run. Also the test
database was renamed to db_test from ar_test.