added support for synonyms in Semantic Glossary, added .idea to gitignore

Improved caching

Change-Id: I5073db166165cc2a5aa2ba66113fc176313efd2d