Use newer jsx library instead of ejson

* This also removes the dependency on older versions of mochiweb which couldn't compile using OTP 17.3
Version 0.3.1