Copyright year bumped to 2013 in docs footer
Document that errorcodes is updated to 9.2
NEWS file reformatted to reST and included in the docs
Added summary data types conversion table to the docs

It allows looking at a glance both basic and extended type casters,
with plenty of links to the detailed explanations.
Added a C structure to psycopg.Error

This will allow to store a PGresult in it.
Store a PGresult in the Exception error

This makes the Diagnostics independent from further operations on the cursor
and allows using it with exceptions not generated by a cursor.
Added tests to verify the new Diagnostics properties

diag can be used on exceptions raised without cursor and is independent from
the cursor.

Docs updated to reflect the changes.
psycopg2.Error object and type renamed more consistently
Merge branch 'diagnostics' into devel
Notify and Xid objects and types renamed for consistency

They were the only objects starting with uppercase. My fault.
Use Py_CLEAR on self->query instead of if and decref
Dropped IFCLEARPGRES macro

PQclear already guards against NULL, so the extra check is redundant
Dropped "customized" pg_free functions

The defaut is already to call PyObject_GC_Del.
Fixed ticket number in NEWS file
Note than Python 3.3 is supported in install docs
Added forgotten attributes to visit in error
Fixed leak of cancel key on connection.reset()

Moving the final free into the destructor is not necessary but looks
appropriate.
Fixed broken test decorator preventing 3 tests to run
Use wrap to fix names of decorated test methods

Decorators not using wrap() prevent running the test from command line, e.g.
with:

    python tests/__init__.py test_module.TestSuite.test_method
Better use of Py_CLEAR and implicit zeroed-out structures