some refactoring. Set up rspec VCR to run specs.