Improved content type handling and error handling

Updated:

- Add content-type to alert target definition and limit to text or JSON.
- Add name to alert target definition as optional; will be pointed at URL
  if not provided.  Name is printed in info message at startup.
- No longer causes database warning on null value for previous state when
  a new status is registered