Separated perMain() for ARM and other platforms
Refactoring of perMainArm(), hw specific stuff moved to targets
Refactoring continued: Try to run lua scripts before the first LCD function