Implement non-block write operations for the lua application framework.

The implementation creates a queue structure for each socket write and drains this queue using the return from the select call.  Once a queue is empty is it erased and that socket is no longer considered writable.

The write timer is gone.
Remove commented out old code.