define_singleton_method replaced, 1.8 syntax started
json gem & miitest added. Requires updated
minitest renamed & Perfecta::Client.any_instance.stubs(:exchange_credentials_for_token).returns('token') on-liner'ed