Added referrer code

https://swrvedev.jira.com/browse/SWRVE-4019

Private changes:
https://github.com/Swrve/swrve-sdk/pull/762

@Sergio-Mira 
Do we still want to save in the prefs if empty?