Make the InvalidAgentInterval configurable
Pass the missing BLOCK_INTERVAL_MS to the ip_record
Check for blocks against the right interval
Make the now() function configurable to facilitate testing
Copy the retryAfter function from email_record.js
Add unit tests for ip_record.js
Merge pull request #7 from fmarier/ip_record_tests

ip_record tests
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
Add basic framework for tests against the API

Unit tests are now in `test/local` and API tests in `test/remote`.
Full test of the / API endpoint
Add error checking to all API endpoints
Basic testing of the `/failedLoginAttempt` and `/passwordReset` endpoints
Basic testing of the /check endpoint
Include all parameters in the logging of /check
Remove unreachable return statement
Functional test: blocking an email with too many failed logins

The test looks like this:

1. clear all bad logins
2. check that the account is not over the limit
3. use the /failedLoginAttempt endpoint to go over that limit
4. check that we are over the limit
5. wait until the bad logins expire
6. check that we're no longer over the limit