Added iPad support. For now the loading HUD is broken on iPad.