Refactor url handler into classes.

Break out each handler into a separate class. Tests were fundamentally unchanged (minor change to deal with additional followers), and all still pass.