Updated to follow 2.x PhoneGap Standards. Tutorial based on 1.x branch.