Fix places where we were using relative imports.

Relative imports won't be allowed in Python 3, and they sometimes cause very
mysterious bugs (like decorators being applied twice).

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