Added phonegap support

Adding this will let you use phonegap through RPC in your application.

TODO: Documentation