IDE-1487 rewrote the validation of <resource-bundle>, <portal-properties> and <language-properties>

also added unit test for these validation