tessel/runtime#463 r=@jiahuang: Supports function as objects. Supports proper socket closing.