Set up models for category and article

Added relationships, validations, and scopes to make the business logic in the model better