Add backward compatibility with rails 3. Drop the slugs. Deep refactoring.