Make sure all files are loaded before starting to process the data

- Especially make sure that all language files are loaded before creating
  layout and buttons
- XWD needs to be loaded before processing xml (icons are in XWD)