Updated to work with latest PS and libs

Hi. I've tried to use your lib, but, unfortunately, it couldn't compile with PS 0.5.4, so I've slightly updated it. Besides I've added a recursive example into `complex` and rewritten `jsonToValueImpl` so it takes PS functions from outside now (AFAIK it's better not to rely on module names inside JS code, at least that's what I've seen in other libs).