#18 Converted core & parser to new call convention

The core is now using the new call convention consistently. It doesn’t
build yet since the wrapper functions for the core-procedures are not
yet implemented.

TODO: generate procedures for core.