Use friendly postgres error codes
Apply db schema in tests
Use gocheck mirror, update Godeps

The mirror is required because godeps doesn't
support -copy=false with packages that use bzr.
Add travis config