Wrote first code to call protocol functions

Well, so that was a disaster... Apparently GHC doesn't do inline
functions, which means I'll have to reinvent some stuff, cause currently
this is giving linking errors.