Script to test ticket #58 moved into sandbox

We don't need it distributed in the sdist
The UUID adapter returns bytes instead of str in Python 3

Also added __conform__ method to the adapter.
Solaris 10+, and illumos distros have round()
Remove extra ||
Long ifdef reformatted for readibility
Mention Solaris round fix in NEWS file
Merge branch 'solaris-round' into maint_2_4
Skip tests on python implementations without getrefcount()

PyPy is one of these.

Conflicts:

	tests/test_cursor.py
	tests/test_module.py
Added test to verify copysize handling in copy_expert

Not an original psycopg2 bug but present in pure python implementation,
e.g. ctypes issue #25 and cffi issue #5.

https://github.com/mvantellingen/psycopg2-ctypes/issues/25
https://github.com/chtd/psycopg2cffi/pull/5
Added regression test for infinity parsing in dates

...and a couple of typos.
Meaningful connection errors report a meaningful message

Fixes issue #173.

Conflicts:

	NEWS
Document that using %, (, ) in the placeholder name is not supported
Document that named cursors don't raise an exception going out-of-bound

See issue #174 for the details.

Conflicts:

	doc/src/cursor.rst
Really test named cursors in test_scroll_named()
Typo fixes and improvements to new_array_type() docs
Check connection type in lobject init

Fixes ticket #187.

Conflicts:

	NEWS
Fixed dealloc of lobject->smode

I put it by mistake into the in the self->conn checked block in the
previous commit.
Fixed debug build on Windows

Patches on master by James Emerton, from github pull request #8.

Conflicts:

	NEWS
Set the connection async earlier in green mode

The moment it is called shouldn't have really changed, but it's more
explicit when it happens. Previously it was sort of obfuscated behind a
roundtrip through the green callback and poll.
Set the connection async before polling for connection

It should fix ticket #194