core: Remove GetPermittedStorageDomainsByTemplateId

GetPermittedStorageDomainsByTemplateIdQuery is not used anywhere in
the code, and hence should be removed.

This patch removes the following:
1. The GetPermittedStorageDoaminsByTemplateIdQuery class
2. The GetPermittedStorageDoaminsByTemplateId constant representing
   it in VdcQueryType
3. The GetPermittedStorageDomainsByTemplateIdParameters class which
   was only used by the removed query class.
3. The getPermittedStorageDomainsById method in StorageDomainDAO
   (which was only used by the query), its implementation, and its
   test.
4. The Getstorage_domain_by_id_with_permitted_action stored procedure
   that was only used by the said DAO function.

Change-Id: I94f586e0daeebc0f768639b39444b30ff3101378
Signed-off-by: Allon Mureinik <amureini@redhat.com>