Add API tests for Environment entities

Update the `Environment` entity definition:

* Add mixins for creation, reading and deletion.
* Update the definition of the `Environment.name` attribute.

Thoroughly test the relevant API endpoint.