Apple Update

Now works for apple device fully as well

One problem still to be addressed is passing he name stored in the
database back to be associated with clicks and the user