Adding phonegap support to uwap auth
minor cleanup