generically convert hosts hash to php

this will allow for any per host config params to be passed through to
the php config.  plan to use this with a future version of nagdash
that has a url param for linking to the nagios web interface
fix for ruby 1.8.7 use insert instead of prepend