Travis: Split dependencies into their own file

This avoids extra dependencies when building the package outside travis.
Travis: Add a travis-specific settings file
Travis: Add postgres to the testing matrix
Travis: Add mysql to the testing matrix
Travis: Always build with memcached