Lock method bindings in public and private env. Fixes #19
Add tests for locked bindings
Merge branch 'lock-bindings'