Automatic referrer properties

Tested with various tools and potions. Will be actually putting an app in the store this weekend. @jbwyme please take a look!