Add lua functions to manipulate Entitys

-Add lua global variable 'res' to manipulate Entitys related functions
-Add lua mapped functions to list in scriptWindow

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>