Use names instead of IDs when creating templates and databases

The based_on param for creating templates and databases now holds the name instead of the ID.

IDs are still used for get and delete requests, but removing those will have to wait until #25 (and associated serial ID removal of template entities)