Separating url processing from class to allow use of sprocket in other frameworks