The single target rotation is on the first page in the first post and is as follows:
1. Searing Totem
2. Lightning Bolt if you have 5x Maelstrom Weapon stacks
3. Stormstrike/Windstrike
4. Lava Lash
5. Flame Shock if it has 9 seconds or less remaining
6. Unleash Elements
7. Frost Shock
Two target cleave is the same but Fire nova at #7 and Frost shock jumps down to #8.
Mass AoE is just spam Fire Nova with Unleash Elements as often as you can. Spam Lava lash outside of Fire nova since it'll reset very very often, if you still have globals left to use after that you go back to your single target priority.
Which means you prioritize SS over LL because of the way the CDs lineup. (Single target)
Refresh Flame Shock at ~9 seconds left of the debuff, with Unleash elements buff. (Single target)
For AoE you use Unleash Elements for Fire Nova since using LL to spread Flame shock doesn't spread the buffed version that's most likely on your main target.
For talents I'd suggest Ancestral Swiftness - Unleash Fury - Liquid Magma. These talents would be the baseline but for some encounter it might be better with another setup such as Mythic Butcher might be better to use Elemental Mastery - Primal Elementalist - Liquid Magma since you can use Fire elemental glyph and sync all your CDs for a 2nd use as Ascendance gets off CD again together with pot.