free->tfree. Memory checks, if compiled with -DDEBUG
Fixed warning
Merge branch 'master' of https://github.com/antma/tg

Conflicts:
	tools.c
binlog.c: fixed tfree len
tools: added more debug
structures.h: added del_use
tools.c: deleted unneeded arrays
Added partial lua support
Added sample lua script
Fixed travis.yml
Fixed travis.yml
fix small memory leaks in the function do_send_photo for the cases of invalid, empty or large file
add functions tstrndup (auto check return value of strndup calls)
don't output backtrace in out of memory case