Import rewrite.
Merge pull request #27 from aleksj/master

Transactions + assorted improvements.
Adjusted the section about transacions in the to do list.
Converted docstring formatting to Markdown.
Let `Connection` return `True` or `False` instead of an integer.
Implemented API for asynchronous notifications.
Fix issue with psycopg 2.2.1 where it can't take a None factory.
Merge pull request #30 from swbrown/fork

Fix issue with psycopg 2.2.1 where it can't take a None factory.
Removed wrapper around self._connection.isexecuting.
ioloop argument for a connection is now optional.
Removed usage of tornado.gen and moved execute/callproc/mogrify.

The requests per second jumped from ~1600 to ~1900 on my laptop
after the usage of tornado.gen has been reduced to zero. This
adds a bit more complexity and code duplication to the code, but
it's worth it considering the hude performance improvement.

While refactoring the connection pool I also moved the execute,
callproc and mogrify methods to the `Connection` class in
preparation for transaction support.
Added logging.
Fixed a bug for very large queries. Found by @stevearc.

When a query exceeds 60000 characters, it keeps hanging and will not be executed.

See pull request #29 for more details.
Added support for transactions.
Fixed call to isexecuting() in busy()
Merge pull request #35 from Thinktiv/rewrite

Fixed call to isexecuting() in busy().
Rewrote the connection module.

Not everything is implemented yet, but the most important parts are done.
Queries are executed, callbacks are executed, errors are handled and everything
still looks understandable. :)
Merge branch 'rewrite' of github.com:FSX/momoko into rewrite

Conflicts:
	momoko/connection.py
Moved transaction code to the Connection class.
Added mogrify function to Connection class.