MT#6909 API Check for existance of email tmpl name

Make sure to not expose internal error on duplicate email template
name/reseller.
MT#6913 API: Basic management of profile sets.
MT#6913 API: implement profile handling.