Phonegap seems to be a nice idea. But how do you implement CORS for such app ?
If you do need to it's very simple, your web server has to include some extra headers:
"Access-Control-Allow-Origin", "*"
"Access-Control-Allow-Methods", "GET,POST" // etc
"Access-Control-Allow-Headers", "X-Requested-With,Content-Type"