Rewrite rest management
Fix rest when being logged in doesn't work for some cases.
Also fix rest bonus according to wowwiki

Should be put in all cores
Thanks to TheTrueAnimal for pointing.