[BACKLOG-1580] - add filter for metadata data sources and its logical mo...

...des. Reviewed cache for domains and updated unit tests

@pentaho-nbaker Please review