Several api methods added
Js bindings refactored
Merge branch 'local'