expanding iprep support

This PR implements the new API that expand the IP reputation to netblocks with CIDR notation.
Comments addressed from the last PR: https://github.com/inliniac/suricata/pull/1133

- PR build: https://buildbot.openinfosecfoundation.org/builders/glongo/builds/4
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/glongo-pcap/builds/4

Issue [#707]
(https://redmine.openinfosecfoundation.org/issues/707)