Add testing infrastructure.
Made advisory_lock actually release the lock on exit (!)
Close cursor on normal exit

This isn't perfect but it minimizes resource leaks in the common case
Merge branch 'master' of git://github.com/aaugustin/django-pglocks into aaugustin-master

Conflicts:
	README.rst
Fixed error where lock was not actually released.