Fixes to get the plugin working in Foreman 1.2
Test code removed.