Find and select the machine token on drop

* New method to find a machine or container token given the machine's name
* Update call sites to select the machine/container token on creation.
* Tests.
Could we do this search inside the new function and eliminate the need to pass in a boolean? That way if we change how we tell a container from a machine, we only have one spot that needs updating.