refactored app.lua
moved config into it's own file