Lightweight routing methods inspired by Rails.