fix patient message send bug
bug fixes
fix most specs
add tmp dir to cap deploy:setup