Template for registering functions to LUA

Each lib has its own file.