Introduce exception factory to allow customization of exception thrown when ip is blocked

RFC, new PR that includes a fix for the the failed tests in: https://github.com/codeconsortium/CCDNUserSecurityBundle/pull/22