SSP-2465 Fixed missing refUrl encoding, removed UrlBuilderService from persistence context, converted SsoController to use UrlBuilderService