instagram callback now based on Rails.env. Also tidied up debug puts

statements