updated webapi; established ajax infrastructure

updated webapi; established ajax infrastructure