Merge pull request #1 from happypeter/master

update source
#535: use could restore gravatar after uploading avatar
refactoring course purchasing process, adding some stricter validations
missing out_trade_no
remove unnecessary comments
#485|transparent PNG avatar background color set to white
Merge remote-tracking branch 'upstream/master'
#485|keep png transparent background, now they'll all be saved as PNG file for real
Merge remote-tracking branch 'upstream/master'
upgrading to rails 4.1.1
upgrading to rails 4.1.1| routes fixed; scope in model fixed; now it could be working
upgrading to rails 4.1.1| updated jquery.Jcrop to 0.9.12 which supports Jquery 1.9
Merge pull request #544 from algo31031/rails_4.1.1

updated to  Rails 4.1.1 and ruby 2.1.2