Make `traits` public, added docs
Extracted tests into a separate mod
Environment improvements

- should be created using EnvBuilder

- uses `FilePermission` instead of `mdb_mode_t`

- makes distinction between flags available on creation and flags available after opening

- simplified code (no more state checks)