js-backend: support for callable references

This commit adds support for callable references.
The following are supported:
* Function references
* Member references
* Extension function references
* Constructor references

Known issues:
*  native and builtins functions for primitive types are not supported yet