Reorganized code

Moved some things around so the repository is a little more “standard”
for phonegap plugins