add views_dir and public_dir setters, remove class vars