misc syntax and dependency fixes for rvm+apache+passenger app defined type; also ensuring that bundle install sequence runs as the app user (not as root)