threat colour fixes, move addon code

add .gitignore
fix update is called before a frame is shown
split addon initialisation to addon.lua
fix threat colour sticks on health bar
implement threat colour when losing threat