Merge pull request #1050 from Windower/4.1

Live > Dev merge
GearSwap: Added dofile to the user environment
Merge branch '4.1-dev' of https://github.com/Windower/Lua.git
GearSwap/Mote-libs:
Store a list of all valid buffs from resources.
Use that list to restrict which auto-handled state.Buff values are automatically
reset.
Merge pull request #1051 from Kinematics/4.1-dev

GearSwap/Mote-libs:
boxdestroyer, digger - updated message ids for september update
Merge pull request #1053 from svanheulen/4.1-dev

boxdestroyer, digger - updated message ids for september update
Merge pull request #1054 from Windower/4.1-dev

Dev > Live merge