Implemented link layer.

Use LuaCompat for require/module implementation.