Debugged the redirect_to :back when there is no referer.
Prepared gem for release.