Added PhoneGap support and an example app