autoregistration of spacewalk hypervisors
oops, forgot to make param out of hardcoded value
use profile name instead of hostname

Previously, we were using hostname to look up hypervisors. This resulted in a
large window for race conditions, since new hypervisors to get picked up by
spacewalk search. Other attempts to find the hypervisor woudl fail and result
in lots of new hypervisors being created.

This patch tightens the race condition window significantly by only relying on
DB operations, but it still exists.
hack for registration race condition, and convert str to int
fix stylish and tests
Merge pull request #26 from beav/autoreg-sw

Autoreg sw