daemon: implement cosockets in Lua
Idea
This would allow modules in Lua land to start socket servers and pass on data without blocking the main thread. It should be implemented like a wrapper over LuaSocket API and call yield with a file descriptor, which would then return when that file descriptor becomes active.