Fix string value to match its own description.

The string value was saying it contained one single quote when in fact it contained two.
It was using postgresql syntax of using 2 single quotes to represent 1 single quote.
Add notify test to check if multiple notifications are received. (This test currently fails.)
See bug [#1011374] http://pgfoundry.org/tracker/index.php?func=detail&aid=1011374&group_id=1000140&atid=590
removing BufferedStream fixes multiple notify bug [#1011374]
all write to stream commands should be finished by Flush() to send data via network stream
(with BufferedStream this was done indirectly by switching from reading to writing)
reimplement buffered writes with help of special stream class BufferedWriteStream:
this class buffers all written data but let you read directly from base stream
replace BufferedWriteStream by BufferedNetworkStream
Merge branch 'master' of https://github.com/npgsql/Npgsql.git into multiple_notify_fix
add constructor for NotifyTest
Merge branch 'master' of https://github.com/npgsql/Npgsql.git into multiple_notify_fix
Detection of Parameter Direction in DeriveParameters method.

This detection is necessary because currently this method defaults all parameters with Input direction and when using functions that have OUT or INOUT parameters they aren't updated.
(PR - updated for current master)
Merge branch 'master' of https://github.com/npgsql/Npgsql.git into multiple_notify_fix
Fixed an issue where Time was being created as DateTime
fix some bugs when throwing ArgumentOutOfRangeException

Some fixups by roji

Conflicts:

	src/Npgsql/NpgsqlCommand.cs
Improve performance of NpgsqlParameterCollection GetValue by using a dictionary lookup instead of scanning the parameter list.
Performance tests for NpgsqlParameterCollection GetValue
DeriveParameters Test (updated)

Update the test to work properly with versions of PostgreSql before 9.x
Added #if against LinqBridge

In some cases the conditional csproj compilation rule for
.NET 2.0 only did not work, added #if NET35 to reinforce
Merge branch 'master' of https://github.com/Steven-Berry/Npgsql
NpgsqlParameterCollection

Remove IList<NpgsqlParameter> implementation.
Change name lookup behavior to match SqlParameterCollection: Always return the first match.
Optimize the non-indexed name lookup scan.
Provide a more descriptive error on name lookup failure.
Invalidate hash lookups in a slightly more self-documenting way, and hopefully in all required spots (previous commit had missed one spot I think).
Merge pull request #73 from npgsql/fix-trivial-single-quote-test-string

Fix string value to match its own description.