Make the now() function configurable to facilitate testing
Copy the retryAfter function from email_record.js
Move allowed actions to an array

This is similar to how it's done in `email_record.js`.
Add unit tests for ip_email_record.js
Merge pull request #9 from fmarier/ip_email_record_tests

ip_email_record tests