Add accessors.

* Transaction#env
* Database#env
* Cursor#database
Merge pull request #30 from minad/accessors

Add accessors.