Repro unit test for #296
Merge branch 'bug296' of https://github.com/roji/Npgsql into bug_296
Simplfied repro unit test bugs #240 and #296

This is about as simple as I can make it.
Fix for bugs #240 and #296

Properly handle escaped single quote character ('') in a quoted section during query parameter substitution.
Bugs #249 and #296 Unit Test Improvements

Use close approximations to the repro queries supplied for these bugs, in addition to the simple one devised for diagnosis.
Remove debug/logging code.
Merge pull request #307 from glenebob/bug_296

Fix bugs #240 and  #296, parameter substituion troubles