Make record_penalty virtual so it can be mocked
Remove debugging printf
Merge commit '0050917cf8afc86c6f51c8b848897a0b0d198977' into homestead_handler_stats_uts
Merge pull request #49 from Metaswitch/homestead_handler_stats_uts

[No review required] Make HTTP penalty recording mockable