Added "app" framework in app.lua.