Update travis configuration to match other gems
Fix code formatting
Update rspec configuration to use common settings
Add MIT license to gemspec
Change memoization to use a thread-safe Hash
Update flay threshold