Modernization of the code base.

- Fixed a couple more ast.Function nodes handling
- lib.sjs now uses the MatJuice base API
- Added mjapi.js
Added mjapi.js