Clean up stack and exception handling

- Add a new TornadoSession.validate() method
- Add new doc examples
- Raise a psycopg2.OperationalError when it can not connect or has been disconnected