Refactored AuthorsController and added model for 'Author' endpoint.