LunaLua global API functions

This is the new softcoded API system for custom written APIs. It provides functions to easy load APIs and functions for APIs to hook into events.