Added functions to register compiler functions.

* Also added future support for native functions.
Added code for function we need to test.