Implement utility functions

implemented functions hostFromUrl, resourceFromUrl
added normalizeUrl
Add url normalization to ServiceConfiguration constructor

parameters tokenRequestUrl, authorizeUrl, tokenExchangeUrl are now normalized
Add tests for normalizeUrl, hostFromUrl, resourceFromUrl functions