Add main.lua loading mechanism

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>
Replace binary libraries with original sources

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>
.APP target added

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>