Auto merge of #2165 - Turbo87:router, r=locks
Auto merge of #2165 - Turbo87:router, r=locks

router: Convert to ES6 class

... to make the transition to https://github.com/rust-lang/crates.io/pull/2149 a little easier :)

r? @locks

rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io