refactored determining idsrv's base url; updated wsfed plugin to use new base url APIs