Added api.lua with all node registration functions