Drop deprecated `env.response.data.layout` variable.

`env.response.layout` actually is in use.
Fix dropdown page selector of `common.blocks.pagination`.
Drop `env.response.data.head.apiPath` variable.

Use `getApiPath()` template helper instead.
Synchronize admin client system files.