Initial travis-ci and coveralls configuration.
Added travis postgres database configuration.