Abstracted out base Imgur functionality into imgur/base.rb