Merge pull request #1 from Larth/master

* rewrote guild repair logic to recognize if you don't have money on the guild bank or if you have no permission to use the guild bank
* made several globals local
* reordered the logic slightly to skip unneeded code executions

Signed-off-by: Ession <mail@mathiasjost.com>
* bumped addon version to 5.2.2

Signed-off-by: Ession <mail@mathiasjost.com>
Merge pull request #1 from Ession/master

whey