Made django lpsolver functional, added json API to javascript.