bashrc: move to template, include RAILS_ENV for ssh
bashrc: fix ssh support, use rails_helper