Added knockout bindings and ajax code.