Refactor to use "phongap." domain and pass around nice JSONObjects, not
horrid strings