LunaLua global API functions

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