Properly support management URLs for host templates

Set managementurls to [] (the empty array) by default and process the
managementurls property as an array of hashes, where each hash has a
"name" and a "url" key.