Use strings to store SlaveTemplate references in EC2Slave.

When EC2Slave objects are persisted, references to the SlaveTemplate
that was used to provision them are broken unless the template's name
itself is stored.