Added function to provide custom net methods
Merge github.com:vysheng/tg

Conflicts:
	tgl.h
Merge github.com:vysheng/tg
Merge github.com:vysheng/tg
Added partial support for action resend. Fix crush on incorrect encrypted message in lua mode
Merge github.com:vysheng/tg
Minor fixes
Makefile.in: deleted net.o and tgl-timers.o from libtgl. Libtgl now does not depend from libevent
Merge github.com:vysheng/tg
Added user status support
increased log level for status updates