[#1011346] BUGFIX: Thread synchronization inside GetPooledConnector

Reworked UngetConnector to remove the connector from the Busy queue and add to the Available queue under the same lock.

Thanks Ilya G for the heads up.
Merge pull request #33 from franciscojunior/bug-1011346-thread-synchronization

[#1011346] BUGFIX: Thread synchronization inside GetPooledConnector

Bug report link: http://pgfoundry.org/tracker/?func=detail&atid=590&aid=1011346&group_id=1000140
Normalized line endings CRLF->LF
Added .gitattributes to normalize line endings
Normalized all tabs to 4 spaces
Ran all cs files through git stripspace

- Remove trailing whitespace from all lines
- Collapse multiple consecutive empty lines into one empty line
- Remove empty lines from the beginning and end of the input
- Add a missing \n to the last line if necessary.
Fix TransactionScope-related bug

Closed connection within an active TransactionScope wrongly got
disposed, caused hangs in some cases.

Introduced in ade62ad43e846fc15d1b5eda51460d496fd9e9b9, sorry.
Unit test which reproduces this already exists, a bigger pull request
will be submitted later.
Merge pull request #55 from roji/normalization

Lots of normalization
Merge pull request #56 from roji/scope_fix

Fix TransactionScope-related bug
Ignore failing test UpdateRowSource for protocol 2
Merge pull request #58 from roji/update_row_source_test

Ignore failing test UpdateRowSource for protocol 2
ByteaTextToByteArray conversion optimization
Formatting
Formatting
Formatting
Formatting
Headers formatting
Merge pull request #57 from Rungee/master2

ByteaTextToByteArray conversion optimization