Refactored error.rb to use find_or_create and not messy conditionals. Added the gems for testing and deployment.