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.
Merge pull request #1273 from Ichimonji10/test-environment

Add API tests for Environment entities