Add JSON / CORS Support

Wrote a little web services wrapper with CORS support; easy integration with web apps/JavaScript/etc.