ensure dest_dir exists
added better support for rending raw files in views.
set version to 3.1