Got rid of as_dict() method for TaskStatus and added a task status serializer to be used in the controller layer