Support /autojoin
Overhaul system for deleting chat rooms
Fix crash in /autojoin
Overhaul room auth system
Now, most rooms inherit auth from global auth. In other words, if
you're a global driver but a room leader, you'll be a leader
in that room, but if you're a global driver but have no room
auth, you'll be a room driver.

The exception is private rooms with private auth: These don't
inherit, and in general are not bound by chat rules, so /warn
doesn't work in these rooms at all.
Fix crashes in room commands with blank IDs
Fainted pokemon should still have singleEvents
This is relevant for having Future Sight hit from a fainted pokemon.
Parse devoice, demod, etc. commands correctly
Merge pull request #286 from V4Victini/patch-7

Parse devoice, demod, etc. commands correctly
Abilities/items of fainted Pokemon should not activate
Improve seasonal team maker

Imrpove Average August's team maker taking into account player's feedback on the Seasonal.
Gen 1: Unban partial trapping moves

With the 0 PP behaviour fixed, there is no need to keep partial trapping moves banned, since the game changing struggle lock on 0 pp sequence is no longer there.
Show again UU ladder

As per tier leader kokoloko's request, show both UU ladders again for the current suspect.
Fix abusable loophole in redir
Redir used user.can as a way to stop lower auth from rediricting to
higher auth to other rooms.
However, if a user had auth over another user in a private room, this
user could redir the other user even if the latter had higher global auth
and/or was not in the room.
This commit fixes that, checking if a user is inside a room before being
able to use redir on they.
Fix redir with target with no target room crashing
Doubles: Unban Sky Drop

Sky Drop is no longer glitched in BW2 and thus available, so Doubles is unbanning it.
Fix weather-dependent healing moves.

These aren't done with a rounded fraction like the other healing moves. They heal the target by an amount equal to it's maxHP modified by either 0xAAC (.667), 0x800 (0.5), or 0x400 (0.25)
Fix Perish Song bug in Doubles

In Doubles, there's the possibility that battle.sides[i].active[j] 
does not exist, thus causing a crash. Add a check for that.
A non-existing Pokémon is not counted for result.
If there's no active Pokémon, there's no field Perish Song 
effect whatsoever.
GP 1/2
Unban Darkrai in STABmons
Update smogdex command: add option to link to doubles formats analyses

Add a third optional parameter to link to a vgc2012, vgc2013, 
or doubles analysis. It only works for gen 5 onwards. If you 
intentionally don't set generation, it will default to 
latest generation and check the parameter for doubles.