JS API consistency with Java, change of profileOrId with just id as

method arguments.

This is regarding API consistency effort between JS and Java APIs of ProfileService. It was decided that places where we are passing profile as well as id, we can just do with id.

Test cases executed - ProfilesTestSuite. No regressions obeserved.