Make test_doctest use entry points

Instead of just checking hacking.core for functions starting with
'hacking_' check the entry points for the full list of hacking check
functions to test. This is needed to split hacking.core up and pull out
the groups of checks into different modules.

Change-Id: I0fb4059eb6bd6eece453a028b949cf15c4d85f89