Fix some style errors
Merge pull request #1129 from kotarou3/tournaments

Fix some style errors
Add gulp-replace to devDependencies
Fix faint-switch mechanics for gens 1-3

The model is now:
- Gen 1: fainting ends the turn
- Gen 2-3: fainted mon is immediately switched, and the turn continues
- Gen 4-6: fainted mon is switched at the end of the turn
Remove a stray debug line
Gen 3: Traced Abilities don't run Start events

Specifically, things like Intimidate don't happen when Traced.
Fix Trace

The previous implementation of Trace is difficult to understand
and has a lot of weird bugs. I'm mostly sure this is what it
was intended to do.
Log ac accounts of locked/banned users
Fix tournaments permissions

Previously, ROs/leaders couldn't enable/start tournaments
Comment gen 3 switch mechanics
Fix weird behavior on double-faint in early gens
Gen 3: Fix Trace bug from 065e293c
added more doubles random battles movepools
Merge pull request #1131 from Audiosurfer/patch-1

added more doubles random battles movepools
Update UU suspect
Started documenting battle messages

Added documentation for the following battle messages: request, move,
switch, -damage/-heal, -boost/-unboost, faint, cant.

Other messages will come next, followed perhaps by how to send moves.

Also, changed most bold headers to h4 headers so that the hierarchy for
battle messages could be more obvious.
Merge pull request #1112 from ascriptmaster/master

Started documentation on battle messages
added some more doubles random battle movepools
Merge pull request #1133 from Audiosurfer/patch-1

added some more doubles random battle movepools
Nicer crash reports

`|split` is now parsed out, which should make battle logs much easier
to read.