Here's what happened with the example Telnet... as you can see - part way through - a reboot.
Pete's LUA module 0.1
NodeMcu 0.9.2 build 20141120 powered by Lua 5.1.4
>
Loading functions
Connecting
Connected to.loft-east.IP:.192.168.0.22
OK
> function startServer()
>> print("Wifi AP connected. Wicon IP:")
>> print(wifi.sta.getip())
>> sv=net.createServer(net.TCP, 180)
>> sv:listen(8080, function(conn)
>> print("Wifi console connected.")
>>
>> function s_output(str)
>> if (conn~=nil) then
>> conn:send(str)
>> end
>> end
>> node.output(s_output,0)
>>
>> conn:on("receive", function(conn, pl)
>> node.input(pl)
c_GORSvfJSzfJSzfn
Pete's LUA module 0.1
NodeMcu 0.9.2 build 20141120 powered by Lua 5.1.4