drop support for pg < 0.14
remove custom errors; pg >= 0.17 distinct errors only
eventmachine dependency >= 1.0.0.beta.1
stick to pg errors in #transaction