Cleanly handle missing stream error on COPY operation. 

Continue #241: 
*Report error for COPY TO queries in standart way
*Cancel COPY TO query, if used in incorrect way (by query method)
*Make COPY TO/COPY FROM error reporting for libpq binding
*Bug fix and code refactoring in COPY TO  libpq binding implementation 
*Tests for all this