Variable specific data cleaning

New functions were added to clean data one variable at a time,
giving more freedom to replace NA by subgroup median values, without
turing the main "clean_data" routine into unreadable soup.