Refactoring rc.lua into separate lua files.