Minimal Kodi entry points

As Kodi recompiles the entry points each time they are called, switch
to absolute minimal code in the entry points.
Thanks martijn