Fixed get_permission_actions method in bhembedding, fixed implementation of query embedding, modified templates

git-svn-id: https://svn.apache.org/repos/asf/bloodhound/branches/bep_0007_embeddable_objects@1514925 13f79535-47bb-0310-9956-ffa450edef68