update to ruby 2.1.2, add rails, imagemagick and mysql config