Allow redirecting notice output from stderr to go routine

libpq is rather verbose, it dumps all sorts of messages to `stderr`. This pull request allows to override this behavior and send output to a go function instead.

By default, behavior stays as it is - notices go to `stderr`. More on that: http://www.postgresql.org/docs/9.1/static/libpq-notice-processing.html