Add host registration on startup

Registration on startup can be changed in the properties and defaults to
false