add header tag hook
cleanup code and handle error cases

if a block does not return any content, += caused an exceptions resulting in a white screen
Merge pull request #1052 from simplysoft/plugin-header-hook

Extend plugin info to allow adding header tags