I'm stumbling around this very issue right now, but his recommendations would not work if you need to interface with native hardware functions such as the camera. It would be great if there were a web interface into native functionality, however. What are the obstacles to os developers providing it?