lxd/api/internal: Adds support for using instance name and project name in container hook routes
lxd/api/internal: Adds support for using instance name and project name in container hook routes

This allows the stop hooks to be run even if the instance has been recovered to a different DB ID while the container is running.

However in order to ensure previously started containers can still stop cleanly we keep support for using instance ID too.

Signed-off-by: Thomas Parrott <6b778ce645fb0e3dde76d79eccad490955b1ae74@canonical.com>

stgraber/lxd,hallyn/lxd,lxc/lxd,atxwebs/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,atxwebs/lxd,stgraber/lxd,atxwebs/lxd,hallyn/lxd,hallyn/lxd,stgraber/lxd,lxc/lxd,lxc/lxd,stgraber/lxd,hallyn/lxd,stgraber/lxd,lxc/lxd,lxc/lxd,hallyn/lxd,stgraber/lxd,atxwebs/lxd,lxc/lxd