web: Implement changing docker resources while cgroup running

Implement a rudimentary way of changing the memory limit and CPU
priority while the cgroup is running.