Convert metaclasses using @six.add_metaclass()

Metaclasses work differently in Python 2 and 3. Newer versions of six include a
decorator that can apply them for both versions. This change converts the
reviewboard codebase to use that.

Testing done: Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/4923/