Updated pg to version 0.17.1.
Added new rake task for test execution. Configured travis to use new task. Configured coveralls to merge coverage results.