Add active_record and refactor requiring the model classes.